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 *

2 + 3 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">