V
Vagabond Software
I'm just getting started with ASP.NET, but I have a strong grasp of C# and
VB.NET.
When my ASPX page loads, I set focus to a text box that will be populated by
a barcode scanner. All of that is working fine.
Once the barcode is scanned, I want to call my ProcessBarcode method without
the end-user needing to click anything or press the enter key. I saw the
following example and added it to me page_load (if not postback) event, but
I'm a little lost on just how to consume this event handler in the
code-behind:
txtBarcode.Attributes.Add("OnKeyPress", "JavaScript:return handleEnter(this,
event, 1)")
In fact, I just pulled this from another post in this group and am not
entirely sure this is the right course to take. Any help or suggestions
would be greatly appreciated.
carl
VB.NET.
When my ASPX page loads, I set focus to a text box that will be populated by
a barcode scanner. All of that is working fine.
Once the barcode is scanned, I want to call my ProcessBarcode method without
the end-user needing to click anything or press the enter key. I saw the
following example and added it to me page_load (if not postback) event, but
I'm a little lost on just how to consume this event handler in the
code-behind:
txtBarcode.Attributes.Add("OnKeyPress", "JavaScript:return handleEnter(this,
event, 1)")
In fact, I just pulled this from another post in this group and am not
entirely sure this is the right course to take. Any help or suggestions
would be greatly appreciated.
carl