Description:-
To create a confirm Box in MVC by using the Following Link likefor ex:-
<%= Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('Are you sure you wish to delete this record?');" }) %>
Html.ActionLink create a Delete Link so When User Click on this Link the confirm Box will Automatically available with two Button ok and cancel For confirmation to Delete this records. The Confirm Box Return True and False if User Click on Cancel Button then Confirm Box is Hide and it will not Fire the Delete Button Click Event. But if User Click on the ok Button then ConfirmBox will Return True and it will Fire the Delete Button Click Event to Perform Delete Operation.
how to send SMS in asp.net click here Send SMS to user in asp.net
how to Export Gridview data to PDF in asp.net Export Gridview Data to PDF
Modalpopup for insert update delete in mvc click here Modalpopup for insert update delete in mvc
Code:-
<%=
Html.ActionLink("Delete", "Delete",
new { id = item.Id },
new { onclick = "return confirm('Are
you sure you wish to delete this record?');" }) %>
0 comments:
Post a Comment