Link to home
Start Free TrialLog in
Avatar of mugsey
mugseyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

dynamic button how to assign different events

I need to have one button on an asp.net web form.  The button text will be depend on the "customer status"

So if a customer is "pending" then the button text should be set to "approve customer"

Now I want to pass a variable of "approve" to the click event of this button.

Also if a customer is "approved"  I want button text to say "disapprove" and pass variable to onclick of this button variable "disapprove"

How can I do this?
ASKER CERTIFIED SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial