anyone good with javascript!

Discussion in 'ASP .Net' started by Paul, Jun 24, 2008.

  1. Paul

    Paul Guest

    Hi I have a webpage that is for data input and has a large number of controls
    on it. In the middle of the page there are 2 dropdown boxes main,and sub.
    when the page first loads only a is visible. If a user selects an item from
    the main dropdown I reload the page and make the second dropdown visible with
    sub items from the selection in the main dropdown. When this happens the
    user must scroll down to the middle of the page and I was wondering if there
    is a way to give focus on the second dropdown, not every time the page loads
    but only when a selection is made in the main dropdown.
    Thanks.
    --
    Paul G
    Software engineer.
     
    Paul, Jun 24, 2008
    #1
    1. Advertising

  2. Paul

    Paul Guest

    thanks, it worked, did not think it would be that easy!
    --
    Paul G
    Software engineer.


    "Mark Rae [MVP]" wrote:

    > "Paul" <> wrote in message
    > news:...
    >
    > > Hi I have a webpage that is for data input and has a large number of
    > > controls
    > > on it. In the middle of the page there are 2 dropdown boxes main,and sub.
    > > when the page first loads only a is visible. If a user selects an item
    > > from
    > > the main dropdown I reload the page and make the second dropdown visible
    > > with
    > > sub items from the selection in the main dropdown. When this happens the
    > > user must scroll down to the middle of the page and I was wondering if
    > > there
    > > is a way to give focus on the second dropdown, not every time the page
    > > loads
    > > but only when a selection is made in the main dropdown.

    >
    > // at the end of the code-behind event
    > MySecondDropDownList.Focus();
    >
    >
    > --
    > Mark Rae
    > ASP.NET MVP
    > http://www.markrae.net
    >
    >
     
    Paul, Jun 24, 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. Shapper
    Replies:
    5
    Views:
    358
    Kevin Spencer
    Apr 26, 2005
  2. Mephistopheles

    Does anyone know a good javascript forum?

    Mephistopheles, Jun 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    392
  3. =?Utf-8?B?UGF1bA==?=

    anyone good with javascript?

    =?Utf-8?B?UGF1bA==?=, Jul 7, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    1,690
    jasonkester
    Jul 9, 2005
  4. JDS

    Anyone?? Anyone at all??

    JDS, Sep 26, 2005, in forum: HTML
    Replies:
    2
    Views:
    398
    Montgomery BOO...URNS
    Sep 29, 2005
  5. Steve Williams

    Anyone? Anyone?

    Steve Williams, Sep 16, 2003, in forum: Python
    Replies:
    0
    Views:
    401
    Steve Williams
    Sep 16, 2003
Loading...

Share This Page