Which button pressed
-
I apologize right off for asking this question but I am either searching wrong or it is too late in the day for me to get the idea. Please, if someone out there can extend a hand, I would greatly appreciate it. I have several buttons on my page, within a form and I would like each button to perform a specific action (show panels, hide panels, assign variables etc...) when pressed. On the post back, how do I find out which button was pressed so that I may perform the function required. A small snippet or a pointer to a article would work out fine. Again sorry and thanks.
-
I apologize right off for asking this question but I am either searching wrong or it is too late in the day for me to get the idea. Please, if someone out there can extend a hand, I would greatly appreciate it. I have several buttons on my page, within a form and I would like each button to perform a specific action (show panels, hide panels, assign variables etc...) when pressed. On the post back, how do I find out which button was pressed so that I may perform the function required. A small snippet or a pointer to a article would work out fine. Again sorry and thanks.
If you have button, then each and every button should have an OnClick Event. You need to perform the operation on the Click Event of that button. BTW, Are your creating button Dynamically ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
If you have button, then each and every button should have an OnClick Event. You need to perform the operation on the Click Event of that button. BTW, Are your creating button Dynamically ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
No, no, no..... It couldn't be that simple!!!! I use OnClick all the time. I knew I wasn't thinking straight. The buttons are not being generated dynamically. They are set a design time. I told you that I wasn't in my right mind. Thanks my friend.
Let say, You have 3 button in your page, Bt1, Bt2, Bt3. and for each click you want to perform some operation. So what is the problem on that ?:confused:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Let say, You have 3 button in your page, Bt1, Bt2, Bt3. and for each click you want to perform some operation. So what is the problem on that ?:confused:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Great!
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.