How to Redirect a page to another page in ASP.Net?

Redirect a page to another page in ASP.Net

 

  • There are basic to method to redirect a page to another page in ASP.Net.
  • Response Object and Server Object.
  • Response Object
  • In Response Object we are using Redirect Method.
  • Syntax for Redirect Method

    Response.Redirect(“pagename.aspx”);

     

     

  • Server Object
  • In Server Object we are using Transfer Method.
  • Syntax for Transfer Method.

    Server.Transfer(“pagename.aspx”);

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha *