mugsey
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.