Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > setting default behavior on enter key

Reply
Thread Tools

setting default behavior on enter key

 
 
WebBuilder451
Guest
Posts: n/a
 
      06-12-2008
I've set the default behavior on enter in two places
1. on a panel containing the control: <aspanel ID="pnl1" runat="server"
defaultbutton="lbtnLogin">
and in the page load: ClientScript.RegisterHiddenField("__EVENTTARGET",
"lbtnLogin");

it works ok with IE so far, but not for FireFox and not for Safari. Is there
a work around? or another method?

Thanks
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)

kes
 
Reply With Quote
 
 
 
 
Augustin Prasanna
Guest
Posts: n/a
 
      06-13-2008
http://forums.asp.net/p/1202208/2095392.aspx - this should help.

Regards,
Augustin

"WebBuilder451" wrote:

> I've set the default behavior on enter in two places
> 1. on a panel containing the control: <aspanel ID="pnl1" runat="server"
> defaultbutton="lbtnLogin">
> and in the page load: ClientScript.RegisterHiddenField("__EVENTTARGET",
> "lbtnLogin");
>
> it works ok with IE so far, but not for FireFox and not for Safari. Is there
> a work around? or another method?
>
> Thanks
> --
> (i''ll be asking a lot of these, but I find C# totally way cooler than vb
> and there''s no go''n back!!!)
> thanks (as always)
>
> kes

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
capturing from text area Shft+Enter, Control+Enter, Alt+Enter and browser issue. HopfZ Javascript 0 08-28-2006 10:11 AM
enter key behavior Antonio ASP .Net 3 11-09-2005 05:19 PM
Enter Key H*ll, control enter key submit button BrianDH ASP .Net Web Controls 3 01-12-2005 08:29 PM
Replace Tab Key to Return Key (Enter Key) from Web Forms? M P ASP General 1 08-06-2004 08:32 AM
trigger HTML button by enter ENTER key Matt Javascript 1 03-06-2004 07:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57