|
DNK has a spanking new server up and running like clockwork. Stability problems are a thing of the past. Our new monitoring service reports 100% uptime since the move!
|
|
submitted by
amit.jain
7 months, 27 days ago
csharpdotnetfreak.blogspot.com — 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").
|
|
tags:
ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
Related Stories:
|