yad4u How to get the Url for urlAction helper class?
صفحه اصلي

How to get the Url for urlAction helper class?



I am using Asp.net MVC.

I want to send a url of my application in a mail. So That instead of sending url like "/Home/Index", I'd like to use url.action() method, as I've modified my url for IIS 7.0 classic mode (e.g. "/home.aspx/Index").

So How can I do that in C#?

We may need to use constructor, But don't have clear idea...


Add another propertymapping? (AutoMapper)

1:

Help with asp.net mvc 1.0 or 2 in Visual Studio 2010Pulling a View from a database rather than a fileWhen is it ok to meddle in the page lifecycle an ASP.NET MVC page?

2:

Significant advantages of ASP.NET MVC
Url.Action("MyAction", "MyController") 
The code above should produce: /MyController/MyAction Or in your case, using classic mode: /MyController.aspx/MyAction . ASP.NET MVC application fires Session_Start multiple times for a single session


76 out of 100 based on 61 user ratings 136 reviews