routevalues
How can I generate url from non-controller static class in asp.net mvc 2 project?
I have created Html help开发者_开发问答er class in asp.net mvc2 project: public static class CaptionExtensions[详细]
2023-04-02 02:54 分类:问答How to specify controller in ActionLink html helper in C#
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[详细]
2023-03-22 23:57 分类:问答Optional route parameters and action selection
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[详细]
2023-02-10 13:02 分类:问答MVC ActionLink add all (optional) parameters from current url
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:[详细]
2023-01-17 12:58 分类:问答Adding dynamic parameters with Html.BeginForm and jQuery submit
// html <% using (Html.BeginForm(\"MyAction\", \"MyController\", new { id = ViewContext.RouteData.Values[\"id\"] },[详细]
2023-01-17 12:29 分类:问答Querystring formatting in asp.net MVC 2
Seems like a straitforward question but I can\'t quite figure it out myself... I have an actionlink like so[详细]
2022-12-30 20:05 分类:问答DateTime constraint on route with time?
How would a constraint for a route look like that needs to be in the format:yyyy-MM-dd h开发者_JAVA百科h:mm?[详细]
2022-12-14 02:11 分类:问答