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.comwww.prenia.comWeblog: blogs.prenia.com/cathi