开发者

How to handle JavaScript in ASP.NET MVC3 when I click the delete button

开发者 https://www.devze.com 2023-03-26 15:59 出处:网络
I have developed a small ASP.NET MVC 3 application in that I开发者_开发问答 have an account application. When I click the delete button, it will ask in the confirmation window something like:

I have developed a small ASP.NET MVC 3 application in that I开发者_开发问答 have an account application. When I click the delete button, it will ask in the confirmation window something like:

"Are you sure you want delete this"?

How do I open this message box in ASP.NET MVC 3?


On the button, place this attribute:

onclick="return confirm('Are you sure you want to delete this?');"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号