working with asp.net mvc in view.
how to redirect to external webpage in new tab?
<%= Html.ActionLink("Paypal", "HowItWorksRedirect", null, new { @class = "Paypal" })%>
public ActionResult HowItWorksRedirect()
{
return Redirect("https://www.paypal-deutschland.de/sicherheit/schutzprogramme.html");
}
You wouldn’t pass this to a controller action, because you’re not linking to within your own website. Just write the markup manually. If you need to re-use it, put it in a section or partial view: