473,503 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preventing page reload when using control (newbee q)

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
3 3023
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4596
by: Bruce | last post by:
I have a number of forms that do significant work based on variables POSTed from the form. What is the common method of detecting and preventing this work from being done when the form is POSTed as...
1
4044
by: Deasun O'Donnachadha | last post by:
Good morning all, I have a page that has a frameset with three frames. It is called Default.aspx. This is the main way into my app. On a page in the main frame, thats the right frame, of the...
1
375
by: Prince | last post by:
Is it possible to reload a page from the server? I have a user control (login) on the page. After a user logs in, I want to reload the entire page again. Why? The Page_Load() of the page...
5
2943
by: Darrel | last post by:
I have a web form that inserts a record into a DB. This function is called from the button_click subroutine. After the record is inserted, I show/hide some different panels and let the page...
9
1807
by: Chris | last post by:
I pop up a Modal form on a web page that allows the user to update the selections of a dropdownlist via adding a new item to the db (Sql Server).The only thing is this list is on the page beneath...
6
1404
by: dana lees | last post by:
Hello, I am developing a c# asp.net application. I have 2 forms. In the first webform ('header') i have a label. I want to reference that label from a different form ('user'), in order to...
2
3840
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
9
3164
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
0
7204
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,...
0
7282
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,...
1
6998
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...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4680
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
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 ...

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.