Dot Net Navigation

📘 Navigation in .NET


🔹 Navigation

To visit from one place to another.


🔹 Navigation Using Controls

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.


🔹 Types of Navigation

1) Onpage Navigation

  • It will show the page name in URL in which we are gonna navigate.

Example:

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.

Example:

Server.Transfer("any.aspx");

Comments

Popular posts from this blog

Introduction To HTML

Data Binding Functions

Export GridView to Excel