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.
Anonymous User
05-Mar-2019Very nice post.
Sunil Singh
14-Jun-2017Your blog always have updated content.