How can i get the value that was pressed in the confirm box?
You can store the value of confirm_proceed() in an asp:HiddenField
confirm_proceed()
asp:HiddenField
You can modify your script as follows:
You can now access first the hidden field's value in your Button2_Click event.
Button2_Click