473,545 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resuming scroll position

Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,
Nov 19 '05 #1
4 1865
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,

Nov 19 '05 #2
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that :(

any more ideas please?

regards,
"srini" <sr***@discussi ons.microsoft.c om> wrote in message
news:67******** *************** ***********@mic rosoft.com...
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data
list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,

Nov 19 '05 #3
sorry i got it wrong the last time,
just a thought
capture the scroll position of the div into a hidden field in the onscroll
event of the div or before causing postback and onload set the scroll
position of the div to the value in the hidden field.
let me know if it works :)
--
HTH
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that :(

any more ideas please?

regards,
"srini" <sr***@discussi ons.microsoft.c om> wrote in message
news:67******** *************** ***********@mic rosoft.com...
hi
check out smartnavigation option for the page.
--
The best
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi,

I have placed a DataList control inside a panel control to obtain a
scrollable list using the overflow:auto attribute. The rows in the data
list
contains and edit LinkButton to enable editing of the selected row via
postback.
My problem is that if i click on the edit button of a row which is not
immidiately visible in the scrollable list than i have to scroll down to
find the row to be edited. Is there a way to resume the scroll position??

regards,


Nov 19 '05 #4
thanks again!

that's got to be it.. but can't work on it for now.

regards,

"srini" <sr***@discussi ons.microsoft.c om> wrote in message
news:4F******** *************** ***********@mic rosoft.com...
sorry i got it wrong the last time,
just a thought
capture the scroll position of the div into a hidden field in the
onscroll
event of the div or before causing postback and onload set the scroll
position of the div to the value in the hidden field.
let me know if it works :)
--
HTH
srini
http://www.expertszone.com
"Emmanuel" wrote:
Hi!

thanks.

However, I'm trying to resume the scroll position of a region (DIV -
Asp:Panel) of the page, apparently the smartNavigation does not do that
:(

any more ideas please?

regards,
"srini" <sr***@discussi ons.microsoft.c om> wrote in message
news:67******** *************** ***********@mic rosoft.com...
> hi
> check out smartnavigation option for the page.
> --
> The best
> srini
> http://www.expertszone.com
>
>
> "Emmanuel" wrote:
>
>> Hi,
>>
>> I have placed a DataList control inside a panel control to obtain a
>> scrollable list using the overflow:auto attribute. The rows in the
>> data
>> list
>> contains and edit LinkButton to enable editing of the selected row via
>> postback.
>> My problem is that if i click on the edit button of a row which is not
>> immidiately visible in the scrollable list than i have to scroll down
>> to
>> find the row to be edited. Is there a way to resume the scroll
>> position??
>>
>> regards,
>>
>>
>>


Nov 19 '05 #5

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

Similar topics

1
3696
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 messages up or down, after the refresh, the scroll position is reseted to the top of the frame and my scroll position is lost.
2
1810
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB code provided on the website. Once I have this example running correctly, I will need to use the concept in a more complex project. The code I am...
4
3634
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 contain a bigger picture of the thumbnailed selected. The problem is that all these thumbnails (and the big picture) are placed quite far down in...
5
15961
by: JezB | last post by:
There are a few references on the net about how to restore a page's scroll position over a postback. This is a simple one which works for me: eg. http://www.devhood.com/messages/message_view-2.aspx?thread_id=104625 My question is : can the same thing be done to restore the scroll position of a specific DIV within a page? I have a DIV section...
1
8665
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 able to set the focus to a control. Here's the problem, when you set the focus by using the registerstartupscript method the control gets the...
6
2314
by: | last post by:
Hi all, I have a long web form on asp.net 2.0. When I go at the bottom and click on submit, a postback occurs and if there are any validation errors (no client-side checking being done), the page loads again, but this time the scroll position is at the bottom. This is annoying, because the actual validation error messages are on the top and...
7
5583
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 browser the list box scroll position is at the top.
2
4987
by: Brent | last post by:
I have a child page opened with a simple open() statement. I'd like to be able to refresh the parent page and keep the current scroll position. (If I do an "F5" refresh on IE, for instance, the page will return to the last position it had.) Is there any "easy" way to accomplish this? I've been using window.opener.location.reload();
12
7810
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. There are a number of elements within this <div> that cause the <div> to participate in an Ajax call to the server. In order to maintain the scroll...
0
7499
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7689
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.