Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Write line to webform
Message
 
To
01/07/2002 11:41:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00673930
Message ID:
00673950
Views:
23
This message has been marked as the solution to the initial question of the thread.
The Text property of the textbox is where the contents of the textbox is stored. To display it, just double-click on the button to create the click handle event. Then place the following code in the click event, substituting your textbox name for "MyTextbox":

Response.Write(MyTextbox.Text);


>Using C#.
>
>I have a webform with a textbox and command button.
>
>When the button is pressed, how can I capture the content of the textbox and write the text back to the screen?
>
>Thanks,
>
>Jerryt
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform