Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One page firing another pages actions

Status
Not open for further replies.

crystalized

Programmer
Jul 10, 2000
390
CA
This has me completely bamboozled.<br><br>I have a series of buttons in an include file.&nbsp;&nbsp;In the include file I just layout the buttons as I want them to appear, there is no code for the click action for the buttons in the include file.<br><br>Each of the pages I have has these buttons.&nbsp;&nbsp;The buttons are designed to cause some actions to be performed, then to transfer the user to another page.&nbsp;&nbsp;The code for what I want the button to do is found seperately on each of the pages where I include the buttons.<br><br>Now for the problem.&nbsp;&nbsp;When I click the button on the first page it does some things then uses Server.transfer to go to another page.&nbsp;&nbsp;The second page includes the button include file.&nbsp;&nbsp;The action for the click event on the second page is to transfer to another page.&nbsp;&nbsp;This second pages action is being triggered automatically.<br><br>Is there anyway I can use the benefit of having the buttons in one file where I can adjust them easily in one location without having to change them on all of the forms.&nbsp;&nbsp;Or am I always going to have this problem of the next forms button onclick event firing because the previous forms button was clicked.<br><br>I hope someone can offer me some words of advice on this question. <p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>

 
I fixed it, I am now using the response.redirect method instead of the server.transfer method.&nbsp;&nbsp;This seems to have corrected the problem.<br><br>Sorry to bother everyone, it was one of those questions you just need to ask so you can figure out the answer yourself. <p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top