mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "/Views/Shared/_Layout.cshtml";
|
|
}
|
|
|
|
<h2>Basic Links</h2>
|
|
<table>
|
|
<thead><tr><th>Helper</th><th>Output</th></tr></thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Url.Content("~/Content/Site.css")</td>
|
|
<td>@Url.Content("~/Content/Site.css")</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Html.ActionLink("My Link", "Index", "Home")</td>
|
|
<td>@Html.ActionLink("My Link", "Index", "Home")</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Url.Action("GetPeople", "People")</td>
|
|
<td>@Url.Action("GetPeople", "People")</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Url.RouteUrl(new { controller = "People", action = "Getpeople" })</td>
|
|
<td>@Url.RouteUrl(new { controller = "People", action = "Getpeople" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Html.RouteLink("My Link", new { Controller = "Poeple", action = "GetPeople" })</td>
|
|
<td>@Html.RouteLink("My Link", new { Controller = "Poeple", action = "GetPeople" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Html.RouteLink("My Link", "FormRoute", new { controller = "People", action = "GetPeople" })</td>
|
|
<td>@Html.RouteLink("My Link", "FormRoute", new { controller = "People", action = "GetPeople" })</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|