Link to home
Start Free TrialLog in
Avatar of abkinv
abkinv

asked on

two confirm functions in btnAdd.Attributes.Add("onclick","return javascriptfunctionname();");

Hi ,
 I need to display two confirm functions one after another with ok and cancel buttons  on button update click.
 I have one confirm function:
btnUpdate.Attributes.Add("onClick", "return confirm('Are you sure do you want to proceed?');"
Can I add one more?

thank you!
ASKER CERTIFIED SOLUTION
Avatar of xbrady
xbrady

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
Avatar of abkinv
abkinv

ASKER

I have a gridview  on a form with custom control.  The user select a record to update and click on update button from user custom control. If one of the fields in the record equal the needed value, then I need to display confirmation box with the warning text before update, if user click ok, then I need to display the second confirmation message box.
I put this javascript function in my custom control. How I can now the  gridvew field ID to check the value  before update?
thank you for your help!!!