Events

H

Hovhannes Asatryan

Hello guys.
I am newbie in asp.net.
I writes asp.net web application in C#, and want to handle textbox
textchanged event.
Can anyone tell me how can I handle this event?
 
G

Geir Aamodt

Hovhannes,

you can do the following (assuming you are using Visual Studio):
1. Add a Textbox control to an aspx page
2. Double click the Textbox control
3. This will create an eventhandler in the aspx.cs and a method where you
can handle the event

This will let you handle the events only after the user submits the data
(postback is performed).
To handle textbox changed events immediately, you need to set the
AutoPostback property to true.
(done in the html tag)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top