This project is read-only.

Confirm dialog

for this you have to first call the Html.Confirm helper and after use a css class to a submit button which action you would like to prevent with a confirm dialog example:
@Html.Confirm("Are you sure ?", "myconfirm")  \\the default class is 'confirm'

and apply it like this:

<input type="submit" value="delete" class="myconfirm" />

Last edited May 12, 2011 at 3:06 PM by o, version 2


o Dec 22, 2011 at 10:23 AM 
@gradile the usual replace <% with @

gradile Oct 11, 2011 at 7:38 PM 
Hi. I'd downloaded the version and works very fine, but I want to know what changes I need to do in order to use the same functions on MVC 3 Razor.