Help to convert VB.net code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • id10t error

    Help to convert VB.net code

    I am making an ASP.net page where a user has a hand-held scanner
    running Internet Explorer. It has a finger scanner attached. When the
    user scans an item i want it to automatically input the data without
    the user pressing enter. I did this for another project in vb.net with
    the following coded
    If Asc(e.KeyChar) = Keys.Enter Then

    I tried to copy this into the asp.net program and get this error.
    'KeyChar' is not member of'System.event Args'

    How can i get this to work?
  • =?Utf-8?B?TWFuaXNo?=

    #2
    RE: Help to convert VB.net code

    I think you can trap the Enter key in the JavaScript code client side using
    this code

    if (event.keyCode == 13) {
    //alert(message);
    return false;
    }

    Regards,
    Manish

    MESCIUS USA Inc. has JavaScript and .NET UI controls, datagrids, reporting solutions, spreadsheets, document APIs and more to take your applications further.


    "id10t error" wrote:
    I am making an ASP.net page where a user has a hand-held scanner
    running Internet Explorer. It has a finger scanner attached. When the
    user scans an item i want it to automatically input the data without
    the user pressing enter. I did this for another project in vb.net with
    the following coded
    If Asc(e.KeyChar) = Keys.Enter Then
    >
    I tried to copy this into the asp.net program and get this error.
    'KeyChar' is not member of'System.event Args'
    >
    How can i get this to work?
    >

    Comment

    Working...