PostBack error I think with HyperLinkButton

ImDaFrEaK

Well-known member
Joined
Jan 7, 2006
Messages
416
Location
California
Programming Experience
5-10
I have a HyperLinkButton on my page and in the click event of the button I redirect the user to a .msi installer file for a windows app I wrote. When the user clicks on this link on the web site all is fine. They are asked whether to save or run and what not just like normal. Whenever they click on any other buttons that postback the code inside those buttons work fine like they are supposed to as well. The problem is I added a button to my form to just cause a post back. Whenever myself or another user clicks to install my program then clicks the button with no code in the click event it handles the postback as if the user clicked the HyperLinkButton again.

In other words if you click the HyperLinkButton and install or not the program and then click the Postback button it handles the HyperLinkButton click event again. Why is this? It dosn't happen with the other buttons that have code inside their click events. There is no code in any of the page events such as load or loaded ect.... With that in mind I know your wondering why I would want to perform a postback for no reason but to tell you the truth I was planning on putting code in that button and removed it for troubleshooting then found this problem. If anyone understands this or has a solution I would appreciate it.
 
Back
Top