I have created Html help开发者_开发问答er class in asp.net mvc2 project: public static class CaptionExtensions
I have a web application developed in ASP.NET MVC3 with C# and Razor. I would like to call a specific Action Method of a specific Controller by using the ActionLink HTML helper. I know that the secon
I use the default route definition: {controller}/{action}/{id} where id = UrlParameter.Optional. As much as I understand it this means when id is not being part of the URL this route value will not
The very famous ActionLink: <%: Html.ActionLink(\"Back to List\", \"Index\")%> Now, this link is in my Details view. The Index view is a search page. The URL of that looks like this:
// html <% using (Html.BeginForm(\"MyAction\", \"MyController\", new { id = ViewContext.RouteData.Values[\"id\"] },
Seems like a straitforward question but I can\'t quite figure it out myself... I have an actionlink like so
How would a constraint for a route look like that needs to be in the format:yyyy-MM-dd h开发者_JAVA百科h:mm?