开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜