Set focus on control 2 with click event of control 1

Discussion in 'ASP .Net' started by Paul, Jul 8, 2008.

  1. Paul

    Paul Guest

    I have two dropdown boxes that post back and when a selection is made on the
    first one I want the second control to have focus on post back, using vs
    2005. I thought there was a way to set this in the properties box of control
    1 but can not remember, thanks.
    --
    Paul G
    Software engineer.
    Paul, Jul 8, 2008
    #1
    1. Advertising

  2. Paul

    David Wier Guest

    try setting it in the code, when your event fires, then, at the end of the
    event try
    ControlName.Focus

    David Wier
    http://aspnet101.com
    http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
    bloated markup


    "Paul" <> wrote in message
    news:...
    >I have two dropdown boxes that post back and when a selection is made on
    >the
    > first one I want the second control to have focus on post back, using vs
    > 2005. I thought there was a way to set this in the properties box of
    > control
    > 1 but can not remember, thanks.
    > --
    > Paul G
    > Software engineer.
    David Wier, Jul 8, 2008
    #2
    1. Advertising

  3. Paul

    Paul Guest

    It works, thanks.
    --
    Paul G
    Software engineer.


    "David Wier" wrote:

    > try setting it in the code, when your event fires, then, at the end of the
    > event try
    > ControlName.Focus
    >
    > David Wier
    > http://aspnet101.com
    > http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
    > bloated markup
    >
    >
    > "Paul" <> wrote in message
    > news:...
    > >I have two dropdown boxes that post back and when a selection is made on
    > >the
    > > first one I want the second control to have focus on post back, using vs
    > > 2005. I thought there was a way to set this in the properties box of
    > > control
    > > 1 but can not remember, thanks.
    > > --
    > > Paul G
    > > Software engineer.

    >
    >
    >
    Paul, Jul 8, 2008
    #3
    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. Purvi T
    Replies:
    0
    Views:
    830
    Purvi T
    Oct 19, 2004
  2. JC
    Replies:
    4
    Views:
    7,968
    Jeff C
    Jul 8, 2004
  3. Chu
    Replies:
    2
    Views:
    905
    Winista
    Apr 10, 2006
  4. Jason
    Replies:
    4
    Views:
    1,618
    Jason
    May 7, 2007
  5. Roger
    Replies:
    3
    Views:
    322
Loading...

Share This Page