Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write line to webform
Message
 
À
01/07/2002 11:41:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00673930
Message ID:
00673950
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform