tags:

views:

34

answers:

2

Hi,

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...

A: 
Url.Action("MyAction", "MyController")

The code above should produce: /MyController/MyAction Or in your case, using classic mode: /MyController.aspx/MyAction

Johannes Setiabudi