Scrolling to a specific control.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mufasa

    Scrolling to a specific control.

    I have a control on a page that appears when there's something somebody
    needs to enter. No problem - part of a panel and when they need to enter
    into it, I set the focus for the control. Problem is, it's not on the page.
    How can I get the control to be on the page when the page reloads?

    TIA - Jeff.


  • Mark Rae [MVP]

    #2
    Re: Scrolling to a specific control.

    "Mufasa" <jb@nowhere.com wrote in message
    news:OcStHcEiIH A.5968@TK2MSFTN GP04.phx.gbl...
    >I have a control on a page
    Problem is, it's not on the page.
    You have a control on a page, but the problem is that it's not on the
    page...?

    Please clarify...


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • David Wier

      #3
      Re: Scrolling to a specific control.

      If you are creating the control dynamically, make sure it gets created each
      time the page reloads
      If you're talking visiblity, then, just make sure the control or panel in
      which it's contained is visible, based on the event handler necessary for
      this.

      David Wier

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


      "Mufasa" <jb@nowhere.com wrote in message
      news:OcStHcEiIH A.5968@TK2MSFTN GP04.phx.gbl...
      >I have a control on a page that appears when there's something somebody
      >needs to enter. No problem - part of a panel and when they need to enter
      >into it, I set the focus for the control. Problem is, it's not on the page.
      >How can I get the control to be on the page when the page reloads?
      >
      TIA - Jeff.
      >
      >

      Comment

      • Mufasa

        #4
        Re: Scrolling to a specific control.

        OK everybody - let me try this again:

        I've got a control that isn't visible all the time - it's in a panel. When
        the user clicks a button, I make the panel visible and I want to scroll to a
        control on the panel. I can set the focus to the control but that doesn't
        scroll to the control. I've tried setting
        Page.MaintainSc rollPositionOnP ostBack = true; but that just scrolls back to
        the place it was before - not to the control I need it to go to.

        Any ideas?

        TIA - Jeff.

        "David Wier" <dw@dw.comwro te in message
        news:OjtVj8EiIH A.4076@TK2MSFTN GP05.phx.gbl...
        If you are creating the control dynamically, make sure it gets created
        each time the page reloads
        If you're talking visiblity, then, just make sure the control or panel in
        which it's contained is visible, based on the event handler necessary for
        this.
        >
        David Wier

        http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
        no bloated markup
        >
        >
        "Mufasa" <jb@nowhere.com wrote in message
        news:OcStHcEiIH A.5968@TK2MSFTN GP04.phx.gbl...
        >>I have a control on a page that appears when there's something somebody
        >>needs to enter. No problem - part of a panel and when they need to enter
        >>into it, I set the focus for the control. Problem is, it's not on the
        >>page. How can I get the control to be on the page when the page reloads?
        >>
        >TIA - Jeff.
        >>
        >>
        >
        >

        Comment

        Working...