By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,084 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,084 IT Pros & Developers. It's quick & easy.

Multiselect listbox jumps to top on postback

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.