Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 20, 2008 07:40 AM by Hua-Jun Li - MSFT
Oct 15, 2008 04:09 PM|LINK
I have looked for a solution in VB.Net to see if i can get the events Lostfocus, gotfocus & keypress working on my textboxes. The code that i found stated that you can create the event like a custom entry & it should work but when i tried this the code was
not recognised & so did not run. The code i used is as follows:
This doesn't not work for me. I am using asp.net version 3.5. Are there any Textbox Lostfocus, gotfocus, keypress events in vb.net using asp.net 3.5? If so, please let me know how to use them.
Oct 15, 2008 04:17 PM|LINK
Oct 16, 2008 08:45 AM|LINK
I enabled the auto postback option to true for the textbox in question but i still don't have the options for Lostfocus, gotfocus or keypress available to me.
How do i get these availabe?
Oct 17, 2008 02:04 PM|LINK
I thought that this might be a straightforward task (getting a onkeypress event for a textbox to work) but i'm assuming by the lack of responses that there isn't a simple way to do this in ASP.net 3.5.
please let me know if this is not possible so that i stop trying to go down this avenue.
Oct 20, 2008 07:40 AM|LINK
As far as I kow, the textbox do't include the events like Lostfocus, gotfocus & keypress.
It include the event 'TextChanged'. it occurs when the content of the text
box changes between posts to the server.
Here is the textbox event about textbox, you can read it.