0

I have seen many forums and none work for me.

The way most simple and functional.

GuaGua0308
  • 121
  • 1
  • 1
  • 11
  • 1
    Possible duplicate of http://stackoverflow.com/questions/9739170/how-to-redirect-to-external-url-from-c-sharp-controller –  Mar 10 '15 at 17:34

1 Answers1

0

You can use Redirect for it . Call any Action where you want to redirect the page.

public ActionResult AnyAction()
{
   //Your code
    return Redirect("/UserWebForm.aspx");
}
Dnyanesh
  • 2,265
  • 3
  • 20
  • 17
  • The webform.aspx page its in the project. – GuaGua0308 Mar 10 '15 at 18:45
  • @GuaGua0308 Yes but, when you run that webform.aspx page there must be some URL getting generated like hostname/somefolder/webform.aspx. I am suggesting to put that URL here in Redirect("here") if host name is same then you can user ~ for host name. – Dnyanesh Mar 10 '15 at 19:08