If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

control position of web form in browser

Re: control position of web form in browser

One way is to use the ScrollIntoView command to set an item to appear at the
top of the browser window. The command causes the page to scroll until a
specified control or element is visible. Another is to use the
window.scroll, scrollBy or scrollTo methods.

In the Help index, enter DHTML References to find a complete list of browser
and element methods and properties.

"John A Grandy" <johnagrandy@csi.com> wrote in message
news:3d262b0b$1@10.1.10.29...
> how does one control the positioning of a web form in a browser (i.e. how
> much scrolled-down it is)
>
>

Re: control position of web form in browser

scrollintoview apparently does not apply to web controls. here is the build
error:

'scrollIntoView' is not a member of 'System.Web.UI.WebControls.Label'

"Russell Jones" <arj1@nospam.northstate.net> wrote in message
news:3d2672b7$1@10.1.10.29...
> One way is to use the ScrollIntoView command to set an item to appear at
the
> top of the browser window. The command causes the page to scroll until a
> specified control or element is visible. Another is to use the
> window.scroll, scrollBy or scrollTo methods.
>
> In the Help index, enter DHTML References to find a complete list of
browser
> and element methods and properties.
>
> "John A Grandy" <johnagrandy@csi.com> wrote in message
> news:3d262b0b$1@10.1.10.29...
> > how does one control the positioning of a web form in a browser (i.e.
how
> > much scrolled-down it is)
> >
> >
>
>

Re: control position of web form in browser

ScrollIntoView is a DHTML method, and thus it runs on the client, not the
server. You'll need to write a client-side script to scroll the screen where
you want it. Why don't you have a look at the DHTML References that I
referred to in my previous note?

Russell Jones,
Executive Editor,
DevX.com

"John A Grandy" <johnagrandy@csi.com> wrote in message
news:3d2783a9@10.1.10.29...
> scrollintoview apparently does not apply to web controls. here is the
build
> error:
>
> 'scrollIntoView' is not a member of 'System.Web.UI.WebControls.Label'
>
>
>
> "Russell Jones" <arj1@nospam.northstate.net> wrote in message
> news:3d2672b7$1@10.1.10.29...
> > One way is to use the ScrollIntoView command to set an item to appear at
> the
> > top of the browser window. The command causes the page to scroll until a
> > specified control or element is visible. Another is to use the
> > window.scroll, scrollBy or scrollTo methods.
> >
> > In the Help index, enter DHTML References to find a complete list of
> browser
> > and element methods and properties.
> >
> > "John A Grandy" <johnagrandy@csi.com> wrote in message
> > news:3d262b0b$1@10.1.10.29...
> > > how does one control the positioning of a web form in a browser (i.e.
> how
> > > much scrolled-down it is)
> > >
> > >
> >
> >
>
>