tags:

views:

10

answers:

1

I want to redirect a link using url,action(...)to an external site http://external.com/Page.html

How do i do that in ASP.NET?

+1  A: 

Since the local ASP.Net site does not have knowledge of the external site, just enter your code in plain Html:

 <a href="http://external......"&gt;....&lt;/a&gt;

If you need to calculate parameters:

 <a href="http://external......?&lt;%= MyParamsCorrectlyEncoded() %>">....</a>

If you are using MVC (your question mentions Url.Action) you can use AttributeEncode to encode the attributes to the external site.

GvS
Thanks, I guess that would be it.
Wajih