problem with the AutoPostBack property

M

Mariame

I'm making web pages using VB.Net , the problem is, the AutoPostBack
property of a texbox works only when i press tab, i want it to work when i
press enter instead . . .
this is because i'm usisg a barcode reader that reads barcodes directly in
the textbox, but the codes are read followed by an enter, and i want a
certain code to run by this enter .

thx
 
P

Phillip Williams

Hi Mariame:

To associate a textbox with a specific post back event you can use
JavaScript to associate pressing the Enter key with a button on your page
(that is turned invisible using CSS attribute display=none). To associate
pressing the Enter Key within any textbox to a button on the page you need to
use JavaScript as in this sample:
http://www.societopia.net/samples/ASPPage_Buttons.aspx
 

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

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top