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?');"
精彩评论