Confirmation message box in webapplication

后端 未结 8 1651
刺人心
刺人心 2020-12-19 19:16

Am using the below message box in asp.net web application. Now i want to convert this message box as a confirmation message box and do something when it is true else means r

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 19:20

    I think you are going about this the wrong way. You should display this confirmation before posting back, and then only post back if they choose to "Apply".

    Using ASP.NET web controls, the Button control has an OnClientClick property which can be used to call javascript prior to Http POST:

    You could do something like this:

    
    

提交回复
热议问题