1.

Common navigation techniques in ASP.NET

Answer»

(1)Window.Open:- Its a script method which display a PAGE in a new browser window on the client.Syntax Is as Below
window.open( URL, name [ , features [, replace ] ] )
window.open('pagename.aspx','winname','left=0,top=0,width=500,height=500,toolbar=1,resizable=0');

(2)Hyperlink control:- Its function is only to Navigate to ANOTHER page.Syntax is as Below
< asp:HyperLink NavigateUrl="pageName.aspx" runat="server" />

(3)Response.Redirect:- Its used to navigate to another page from code. This is EQUIVALENT to clicking a hyperlink. Syntax is as Below
Response.Redirect("PageName.aspx")

(4)Server.Transfer:-End the current Web form and begin executing a new Web form. This method works only when navigating to a Web Forms page (.aspx).
Server.Transfer("PageName.aspx");

(5)Server.Execute:- Begin executing a new Web form while still displaying the current Web form. The CONTENTS of both forms are combined. This method works only when navigating to a Web Forms page (.aspx).
Server.Execute(path)



Discussion

No Comment Found