473,406 Members | 2,208 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,406 software developers and data experts.

how to stop button reloading to top of page?

Hi guys

I have a Calculate ASP:button on my page, and a text box next to it. I've
got it so that it calls a function with itself, so you can check the value
before submitting the form to it's final destination.

However, when I click the Calculate button, the page loads back at the top,
instead of where the Calculate button is.

How can I make it go back to where I was?

Cheers
Dan
Nov 19 '05 #1
3 1680
Enable SmartNavigation on the page. This is an option in the property box
for the page. Use it with caution, as it has been the source of problems
when using non-IE browsers and when inserting your own JavaScript into the
page.

"dhnriverside" wrote:
Hi guys

I have a Calculate ASP:button on my page, and a text box next to it. I've
got it so that it calls a function with itself, so you can check the value
before submitting the form to it's final destination.

However, when I click the Calculate button, the page loads back at the top,
instead of where the Calculate button is.

How can I make it go back to where I was?

Cheers
Dan

Nov 19 '05 #2
Thanks, that works...

Is there any way to do it without that? I obviously have no idea whether my
users will be using IE or not, and don't want to make their lives hell! :o)

Dan
"sstevens" wrote:
Enable SmartNavigation on the page. This is an option in the property box
for the page. Use it with caution, as it has been the source of problems
when using non-IE browsers and when inserting your own JavaScript into the
page.

"dhnriverside" wrote:
Hi guys

I have a Calculate ASP:button on my page, and a text box next to it. I've
got it so that it calls a function with itself, so you can check the value
before submitting the form to it's final destination.

However, when I click the Calculate button, the page loads back at the top,
instead of where the Calculate button is.

How can I make it go back to where I was?

Cheers
Dan

Nov 19 '05 #3
I have seen some JavaScript solutions for this; however, I'm not sure how
reliable or cross-browser enabled they are. I would just try googling for it.

"dhnriverside" wrote:
Thanks, that works...

Is there any way to do it without that? I obviously have no idea whether my
users will be using IE or not, and don't want to make their lives hell! :o)

Dan
"sstevens" wrote:
Enable SmartNavigation on the page. This is an option in the property box
for the page. Use it with caution, as it has been the source of problems
when using non-IE browsers and when inserting your own JavaScript into the
page.

"dhnriverside" wrote:
Hi guys

I have a Calculate ASP:button on my page, and a text box next to it. I've
got it so that it calls a function with itself, so you can check the value
before submitting the form to it's final destination.

However, when I click the Calculate button, the page loads back at the top,
instead of where the Calculate button is.

How can I make it go back to where I was?

Cheers
Dan

Nov 19 '05 #4

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

Similar topics

11
by: chris | last post by:
is there a way in either php or html to disable the back and or the reload/refresh on a browser so a potential spammer cant just keep refreshing the page of a form that sends a confirmation email...
9
by: chri_schiller | last post by:
My webpage with a free textbook has a simple html navigation. Moving the cursor on the menu item makes appear the menu item red, using onmouseover. If I click that menu item, I get to the new...
8
by: Matt Theule | last post by:
While stepping through an ASP.NET project, I found that data was being inserted into my database even though I was not stepping through the code that inserted the data. I have a single page with...
4
by: Christian Ista | last post by:
Hello, On a page I have a button, I treat the event click of this button. Is it normal before I treat the method myButton_click I pass throught the Page_load event ? That's mean what, when I...
5
by: Neo Geshel | last post by:
Greetings. I am in a very big pickle. I am trying to add page content - as well as a submit button - programatically to a web form that is supposed to submit to DB and then refresh. That...
3
by: Vivek | last post by:
Hi all, I have a problem in my web-app wherein I need to get the latest page from server on clicking of back button.. I know that it can be done by preventing/disabling the cache in jsp as ...
1
by: Chris Lieb | last post by:
In a form, I have two select lists. One holds the available options. I have some buttons between them for moving items from one list to the other. When the form first loads, all of the items are...
1
by: almarc | last post by:
Problem : Stop an "Unonlaod" when then confirmation is false. Is a really good script but i have just one problem. The problem that i have is when i click on a link. The scipt ask "Do you want to...
2
by: Bob | last post by:
I know how to use php/mysql, but the html aspect of what Im trying to do (if its even possible this way) is what Im unsure of. I want to have a button that a user can hit to valid mysql info...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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
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,...

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.