ASP.net - Button - Javascript Confirm dialog - execute SOME server-side code?

后端 未结 2 1283
执念已碎
执念已碎 2021-01-19 07:27

I have a simple ASP.net page where users can edit information about themselves.

When \"Edit\" button is clicked, the form goes into edit mode and I display \"Save\"

2条回答
  •  礼貌的吻别
    2021-01-19 08:09

    Create a hidden field, and set the value of that field based on the result of the confirmation. You haven't shown the code/HTML for your button or form, but can you fit something like this into it:

    
    
    
    
    
    

提交回复
热议问题