473,383 Members | 1,846 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,383 software developers and data experts.

Position after a Post Back.

Hello Aspx World,
A big number items reapeater is used in a page. So a scrollbar is
always present. When I click a button in the n item, calling ItemCommand
event. The postback forget the position, I see the top of the page.
How to keep the item's position ?
Thanks for responses...
Nov 23 '06 #1
3 936
AAJ
not sure if it will work but you could try....

<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<pages maintainScrollPositionOnPostBack="true"/ *******this line here
******
in your web.config files

hope it helps

"KaNos" <us**@site.frwrote in message
news:ut****************@TK2MSFTNGP03.phx.gbl...
Hello Aspx World,
A big number items reapeater is used in a page. So a scrollbar is always
present. When I click a button in the n item, calling ItemCommand event.
The postback forget the position, I see the top of the page.
How to keep the item's position ?
Thanks for responses...

Nov 23 '06 #2
The standard answer is SmartNavigation, but there are too many complains on
it.

Try this as an alternative solution:
http://www.aspnetpro.com/NewsletterA...200309bm_l.asp

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"KaNos" <us**@site.frwrote in message
news:ut****************@TK2MSFTNGP03.phx.gbl...
Hello Aspx World,
A big number items reapeater is used in a page. So a scrollbar is always
present. When I click a button in the n item, calling ItemCommand event.
The postback forget the position, I see the top of the page.
How to keep the item's position ?
Thanks for responses...

Nov 23 '06 #3
AAJ a écrit :
not sure if it will work but you could try....

<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<pages maintainScrollPositionOnPostBack="true"/ *******this line here
******
in your web.config files

hope it helps

"KaNos" <us**@site.frwrote in message
news:ut****************@TK2MSFTNGP03.phx.gbl...
>Hello Aspx World,
A big number items reapeater is used in a page. So a scrollbar is always
present. When I click a button in the n item, calling ItemCommand event.
The postback forget the position, I see the top of the page.
How to keep the item's position ?
Thanks for responses...

Really good Thanks
Nov 23 '06 #4

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

Similar topics

2
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...
3
by: Carl Mercier | last post by:
Hi, I have a long form that post back to itself at different places. At the very end, I have a button called "Next" that post back to itself again but some panels are hidden and some others are...
1
by: Daniel | last post by:
hi, I had an asp:listbox, and everytime i click item inside, the bar automatically go to the top, is there any way to keep the scroll position? I turn on the smartNavigation, it still doesn't...
4
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...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.