Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Help to convert VB.net code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
id10t error - 11 Feb 2008 19:27 GMT
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.eventArgs'

How can i get this to work?
Manish - 12 Feb 2008 05:31 GMT
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

www.ComponentOne.com

> 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
[quoted text clipped - 7 lines]
>
> How can i get this to work?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.