0
kicks
Cross page posting ,submit form and Server.Transfer methods in asp.net
4. Cross page posting in ASP.NET
To transer data using cross page posting
we need to use FindControl Method
we can write code like this
6. Server.Transfer Method in ASP.NET
Server.Transfer method sends (transfers) all the state information
all application/session variables and all items in the request collections)
created in one ASPX page to a second ASPX page.
you can't use Server.Transfer to send the user to an external site
The Server.Transfer method also has a second parameter—"preserveForm". If you set this to True, using a statement such as Server.Transfer("WebForm2.aspx", True), the existing query string and any form variables will still be available to the page you are transferring to.
For example, if your Default.aspx has a TextBox control called TextBox1 and you transferred to Default2.aspx with the preserveForm parameter set to True, you'd be able to retrieve the value of the original page TextBox control by referencing Request.Form("TextBox1").