Cross page posting ,submit form and Server.Transfer methods in asp.net(csharpdotnetfreak.blogspot.com)

submitted by amit.jainamit.jain(1181) 3 years, 6 months ago

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").

add a comment |category: |Views: 28

tags: another

new Add a live kick counter to your blog >> liveImage

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:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story