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

Preventing page reload when using control (newbee q)

P: n/a
How can I stop the asp page from reloading when I e.g. hit a button or
change the selected index of a dropdownlist to update another control on the
page? The updating part works fine, when I select an item in a dropdownlist,
another dropdownlist list is updated with relevant items. The problem is I
have to scroll down to where I was since the page reloads every time.

Regards
/Grober
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You could use SmartNavigation to prevent the need to re-scroll.
Here's more information:
http://msdn.microsoft.com/library/de...ationtopic.asp
http://msdn.microsoft.com/library/de.../cpconpage.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Grober" <gr***********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
How can I stop the asp page from reloading when I e.g. hit a button or
change the selected index of a dropdownlist to update another control on the page? The updating part works fine, when I select an item in a dropdownlist, another dropdownlist list is updated with relevant items. The problem is I
have to scroll down to where I was since the page reloads every time.

Regards
/Grober

Nov 18 '05 #2

P: n/a
Joe
You could use javascript to achieve this without the refresh which is rather
user-unfriendly (interland ticketing system authors take note ;))- to
reference your server controls in Javascript use their clientID property.
You can add the script to the page by doing response.write or by using the
registerscript function. There are tons of tutorials on the internet
describing the process of using dependent listboxes which should help you
pull the javascrpt together. Have fun :)

Joe

"Grober" <gr***********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
How can I stop the asp page from reloading when I e.g. hit a button or
change the selected index of a dropdownlist to update another control on the page? The updating part works fine, when I select an item in a dropdownlist, another dropdownlist list is updated with relevant items. The problem is I
have to scroll down to where I was since the page reloads every time.

Regards
/Grober

Nov 18 '05 #3

P: n/a
That was it! Thank you!

/Grober

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O7*************@TK2MSFTNGP09.phx.gbl...
You could use SmartNavigation to prevent the need to re-scroll.
Here's more information:
http://msdn.microsoft.com/library/de...ationtopic.asp http://msdn.microsoft.com/library/de.../cpconpage.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Grober" <gr***********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP11.phx.gbl...
How can I stop the asp page from reloading when I e.g. hit a button or
change the selected index of a dropdownlist to update another control on

the
page? The updating part works fine, when I select an item in a

dropdownlist,
another dropdownlist list is updated with relevant items. The problem is I have to scroll down to where I was since the page reloads every time.

Regards
/Grober


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.