blog

Home / DeveloperSection / Blogs / Different Navigation in ASP.Net

Different Navigation in ASP.Net

Amit Singh3292 30-Nov-2010
DifferentNavigation in ASP.Net


ASP.NETsupports following ways to navigate between pages in your application.

  • HyperlinkControl
  • Response.RedirectMethod
  • Server.TransferMethod
  • Server.ExecuteMethod
  • Window.OpenMethod
Descriptionof Navigation method
Hyperlinkcontrol

This isserver control use for navigation to another page specified in the NavigateURLproperty. Hyperlink control doesn’t expose any server side event.

Response.Redirectmethod

This methodis used to navigate to another page from code. You can use this method tonavigate from a Linkbutton or ImageButton control.

For example

               Response.Redirect("Login.aspx")

Server.Transfermethod

This methodcan be used only with .aspx file. It allows retaining some information betweenthe requests when its preserveForm argument is set to true.


Server.Executemethod

LikeServer.Transfer, this method is also used with .aspx file only. This methodenables new page execution while still displaying the current web form.

Window.Openmethod

Display apage in a new browser window on the client.


Updated 18-Sep-2014

Leave Comment

Comments

Liked By