Outline ·
[ Standard ] ·
Linear+
switching tab key with enter key, in asp.net..any1?
|
TSdokidoki
|
Feb 26 2006, 08:48 PM, updated 20y ago
|
|
got 1 problem with my project which user want enter key = tab key....how to switch it?..last time in VB we can ezly assign the key..but asp.net seem to be dun have this function...whenever we press enter key then it become submit(this is wat my user dun want)...
|
|
|
|
|
|
TSdokidoki
|
Feb 28 2006, 09:52 AM
|
|
QUOTE(dokidoki @ Feb 26 2006, 08:48 PM) got 1 problem with my project which user want enter key = tab key....how to switch it?..last time in VB we can ezly assign the key..but asp.net seem to be dun have this function...whenever we press enter key then it become submit(this is wat my user dun want)... erm...any comment + suggestion??
|
|
|
|
|
|
TSdokidoki
|
Feb 28 2006, 10:03 AM
|
|
QUOTE(sinx @ Feb 28 2006, 10:02 AM) You can't compare it with what you did in VB6. That one is window-based and your new project is web-based. You scenario is "Once user press 'enter' then the tab cursor will jump to next field." You need javascript to implement it. <script type="text/JavaScript"> <!-- function doKey($key) { if ($key == 13) { //Do whatever you want //i.e. jump to next control } } --> </script> <body onKeyPress="doKey(window.event.keyCode)"> erm....some of my user r using window 95..some 98....wondering will their browser support it or not~..
|
|
|
|
|
|
TSdokidoki
|
Feb 28 2006, 10:35 AM
|
|
QUOTE(PrinceHamsap @ Feb 28 2006, 10:14 AM) use flash ... if not mistaken flash also can communicate with database as well lagi teruk...i think my user win95/98 pc wouldnt support this flash la~
|
|
|
|
|