Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2008, 09:31 AM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default How to pass textbox values from webform1 to webform2

Hi there i have 2 web forms that i am working with,
in webf1 i have 2 text boxes names txtname and txtemail, in web form2 i have 2 labels named lblname and lblemail, now i want to pas the values in textbox from webform1 to labels in web form 2.


can any one help


thanks
__________________
bx
 
Old December 14th, 2008, 01:50 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

You can post the first page to the second page. Take a look at the following:

http://msdn.microsoft.com/en-us/library/ms178139.aspx

You could also use Server.Transfer method for this, though the above method is probably a little more straightforward.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old December 17th, 2008, 07:09 PM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default

thank you problem solved
__________________
bx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load type 'WebForm1' error hastikeyvan ASP.NET 2.0 Professional 10 July 14th, 2008 01:16 PM
Pass textbox string to Word document bookmark mii2029 ASP.NET 3.5 Basics 1 June 6th, 2008 01:13 PM
create stored procedure+pass qry textbox Pradeep_6323 Struts 0 March 12th, 2008 02:03 AM
How to pass values between different pages dipanjan22 ASP.NET 1.x and 2.0 Application Design 4 September 30th, 2007 02:02 PM
Could not load type 'WebForm1' error hastikeyvan ASP.NET 2.0 Basics 0 June 22nd, 2006 01:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.