Dot Net Navigation

 Navigation


To visit from one place to another. 

We can use Navigation using - 

Controls-

i. Link button (text,postbackurl) 
ii. hyperlink(text,NavigateUrl) 
iii.Imagebutton(ImageUrl,NavigateUrl)   

Code-

 In button if we want to set the navigation . We need to double click on it to open the code window. 

1.Onpage Navigation- It will show the page name in URL in which we are gonna navigate.
Ex:-
Response.Redirect("any.aspx"); 

2.Offpage Navigation- The page name will still be shown as the previous page in URL it is basically used for security purposes.
Ex:-
Server.Transfer("any.aspx"); 

Comments

Popular posts from this blog

Parameter Query

Final Project

Grid View Paging