ImDaFrEaK
Well-known member
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.
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.