Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress Events
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00797302
Message ID:
00797326
Views:
13
Hi Valentin,

You can set the AutoPostBack property for the textbox to true. That will cause a postback to the server when the user enters information into the textbox. You could then trap the TextChanged event that will be fired to execute your code.

>Hi,
>I am learning C# in ASP.NET and this is my first project. Can somebody tell me how I can catch a KeyPress event for server side textbox and execute, for example, submit button onClick event.
>It realy simple, I have a search screen, textbox for keyword and submit button, just want to bind this 2 things together. Please help.
-----------------------------------------

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