Problem in using ENTER KEY in .NET


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Problem in using ENTER KEY in .NET

  1. #1
    Mishra N K Guest

    Problem in using ENTER KEY in .NET


    Hi

    We have a scenerio of multiple controls and each control has image button
    in a form.

    When we press ENTER key the first image button click event is fired.

    Expecting a behaviour in which, if I am in a text box and pressing ENTER
    key, corresponding image button click event to be fired.

    The application is written using .NET framework with apsx files and code
    behind either using VB or C#.

    Will very much appreciate for a solution, so that can be used at any place,
    if client side browser is either javascript enabled or javascript disabled.

    Regards

    Mishra

  2. #2
    David Rothgery Guest

    Re: Problem in using ENTER KEY in .NET


    "Mishra N K" <narendram@bsil.com> wrote in message
    news:3f502828$1@tnews.web.devx.com...
    >
    > Hi
    >
    > We have a scenerio of multiple controls and each control has image button
    > in a form.
    >
    > When we press ENTER key the first image button click event is fired.
    >
    > Expecting a behaviour in which, if I am in a text box and pressing ENTER
    > key, corresponding image button click event to be fired.
    >
    > The application is written using .NET framework with apsx files and code
    > behind either using VB or C#.
    >
    > Will very much appreciate for a solution, so that can be used at any

    place,
    > if client side browser is either javascript enabled or javascript

    disabled.

    The basic set of WebForms controls don't make any provisions for dealing
    with default buttons. Andy Smith has a solution for this at

    http://www.metabuilders.com/Tools/DefaultButtons.aspx

    but I don't know how it works; it might require JavaScript.


    --
    Dave Rothgery
    drothgery@alum.wpi.edu



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center