473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

lock the scroll bar position

I have designed a ASP.NET form with many controls, so it needs to scroll
down with the scroll bar. My question is when I press "add" button in
datagrid(the datagrid was located at the bottom of the form, I need to
scroll down the bar) , the form was postbacked to server and just displayed
the upper part of the form. Is it possible to fix the position of the scroll
bar (I want to display the datagrid after the form postback) ?

Million Thanks
Nov 18 '05 #1
2 2984
when you press Add button, I assume that you are showing a blank record in
the datagrid. if so, you can set focus on the first item in the new row
which would bring the scroll bar down.

Av.
"Grey" <er*******@i-cable.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have designed a ASP.NET form with many controls, so it needs to scroll
down with the scroll bar. My question is when I press "add" button in
datagrid(the datagrid was located at the bottom of the form, I need to
scroll down the bar) , the form was postbacked to server and just
displayed
the upper part of the form. Is it possible to fix the position of the
scroll
bar (I want to display the datagrid after the form postback) ?

Million Thanks

Nov 18 '05 #2
Try to use SmartNavigation

On Wed, 23 Jun 2004 11:38:48 +0800, Grey <er*******@i-cable.com> wrote:
I have designed a ASP.NET form with many controls, so it needs to scroll
down with the scroll bar. My question is when I press "add" button in
datagrid(the datagrid was located at the bottom of the form, I need to
scroll down the bar) , the form was postbacked to server and just
displayed
the upper part of the form. Is it possible to fix the position of the
scroll
bar (I want to display the datagrid after the form postback) ?

Million Thanks


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
4
by: ojorus | last post by:
Hi! I just wonder how I can save a page's scroll position with javascript. (i'm not a javascript developer) I have a PHP-page with two columns; the left contains a lot of thumbnails, and the right...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
1
by: charlies224 | last post by:
Hi, I am writting a software that requires me to make sure the Num Lock is always on and Caps Lock is always off. First, I know how to detect if Num Lock or Caps Lock is on or off (if...
3
by: jkarpago | last post by:
Hi: I have a javascript that creates a custom scrollbar for a div in the middle of my page. The problem is that when I scroll in my div it scrolls the div and the scroll of the page so I loose...
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
3
by: bgold12 | last post by:
How can I test if a vertical scroll bar is at the bottom of the range? I know that... document.getElementById('mydiv').scrollHeight ....returns the range, and... ...
12
Frinavale
by: Frinavale | last post by:
I think I'm trying to do something impossible. I have a <div> element with a overflow style set to "scroll". In other words my <div> element allows the user to scroll the content within it. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.