I'm looking for the way to stop a postback event's method from fireing.
Let's say I have an ImageButton and a Button. Both with their own onClick events set. During a postback I want to arbitrarily cancel the controls "on click" event from fireing before it hits it.
So, If someone clicks on my IMageButton, I might want to say in the PageLoad; "Ok, continue processing this page like it was just a regular postback without hitting the "onImageButton_Click" event.
Is this possible?
Seeing ASP.NET knows what control initiated the postback, and where it needs to go after the page load, this should be a peice of cake.... But I have searched and searched. Not luck.
Any thoughts?
The Killer Ninja Coding Monkeys thank those that mark helpful posts as answers.
My Site |
My Examples |
My Blog 