467,903 Members | 1,809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,903 developers. It's quick & easy.

Multiselect listbox jumps to top on postback

Hi,

I have the following problem. On a page I have a multiple selection listbox.
It contains a lot of items. When items near the bottom are selected, and I
do a postback, the control jumpst to the top. If there are a lot of items,
this can get very annoying, always having to scroll down to the selected
items (if I want to change them, or something).

This behavior is only in Internet Explorer, and only with multiple selection
listboxes. If a single selection box is used, the selection is always
visible, even after a postback. In Firefox, even a multiple selections jump
to the first selected, on postback.

Is there a way (javascript or something) to make IE behave the same way -
that is, to scroll to the first selection in a multiple select listbox on
postback?

Thanks for any help

Best Regards

-Lenard
Nov 19 '05 #1
  • viewed: 5320
Share:
3 Replies
Set Smartnavigation of the aspx page to true

Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/

Nov 19 '05 #2
but because of Smartnavigation = true, this will cause any of the java
scripts like java script menu will be disabled . . .
Raghuram

<sh**********@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Set Smartnavigation of the aspx page to true

Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/

Nov 19 '05 #3
Hi,

Stumbled upon a piece of javascript code for smart navigation functionality,
when i wanted something similar.
I have put this on my blog.
see if this link helps.
http://kannanv.blogspot.com/2004_10_...v_archive.html
--
Kannan.V
Home : http://www.kannanv.com
Blog : http://kannanv.blogspot.com
Web : http://www.DotnetLounge.net

"Any one who has never made a mistake has never tried anything new" - Einstein
"Raghuram" wrote:
but because of Smartnavigation = true, this will cause any of the java
scripts like java script menu will be disabled . . .
Raghuram

<sh**********@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Set Smartnavigation of the aspx page to true

Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sally | last post: by
2 posts views Thread by Cassie Pennington | last post: by
8 posts views Thread by Steve Schroeder | last post: by
6 posts views Thread by Ņ Mahesh Kumar | last post: by
3 posts views Thread by kaosyeti via AccessMonster.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.