enter key while modalpopup is open

Last post 04-01-2008 9:06 AM by joshj. 2 replies.

Sort Posts:

  • enter key while modalpopup is open

    03-31-2008, 5:56 PM
    • Contributor
      2,594 point Contributor
    • joshj
    • Member since 05-17-2007, 9:37 PM
    • Posts 431

    I have a modalpopup that contains a form. If the enter key is pressed while modal is showing, the page seems to postback which doesn't submit the form or click the 'OK' of the modalpopup. Can anyone advise me on how to disable the enter key or allow it to execute a click on the 'OK' button of my modalpopup? Thanks!


    Hypercasting™ - Turning the internet into a retail tool. www.muddhypercasting.com
  • Re: enter key while modalpopup is open

    03-31-2008, 6:09 PM
    Answer
    • Contributor
      2,217 point Contributor
    • karpach96
    • Member since 10-15-2006, 4:59 PM
    • Chicago, IL
    • Posts 409

    Hi, 

     Panel has property DefaultButton set it to your OK button.

    Regards,
    Viktar Karpach

    MCTS .NET 2.0 Web Application, MCPD Web Developer
    ASP.NET C# Technical Blog
  • Re: enter key while modalpopup is open

    04-01-2008, 9:06 AM
    • Contributor
      2,594 point Contributor
    • joshj
    • Member since 05-17-2007, 9:37 PM
    • Posts 431

    Worked like a charm, thanks.


    Hypercasting™ - Turning the internet into a retail tool. www.muddhypercasting.com
Page 1 of 1 (3 items)