Firing a button_click event within a button_click event
-
Hi, I have two buttons btn a and b. Now, when i click btn b the logic written in btn a should be executed first and then btn b logic should be executed. Could anyone kindly help!
Gautham
-
Create an instance of the page2.aspx and make the event of button b public and call the event from page1.aspx. I think this should work
-
Why not extract the logic from the button b click event and stick it in method in a class and then call the same method from both buttons. Slightly neater solution.
-
Why not extract the logic from the button b click event and stick it in method in a class and then call the same method from both buttons. Slightly neater solution.
Tried the same way, its correct however the requirement is that we have a textbox which we would some manipulations, so when we go the other page i need this text box and again send back again to the method for manipulations!!! sounds really weird!!! What is the best solution?
Gautham