setting default behavior on enter key

Discussion in 'ASP .Net' started by WebBuilder451, Jun 12, 2008.

  1. I've set the default behavior on enter in two places
    1. on a panel containing the control: <asp:panel 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
    WebBuilder451, Jun 12, 2008
    #1
    1. Advertising

  2. 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: <asp:panel 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
    Augustin Prasanna, Jun 13, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Antonio

    enter key behavior

    Antonio, Nov 9, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    365
    Jason Kester
    Nov 9, 2005
  2. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    369
    Anders Matthiessen
    Jan 12, 2005
  3. M P
    Replies:
    1
    Views:
    453
  4. Matt
    Replies:
    1
    Views:
    494
    Michael Winter
    Mar 6, 2004
  5. HopfZ
    Replies:
    0
    Views:
    537
    HopfZ
    Aug 28, 2006
Loading...

Share This Page