如何使用parametr从网格中删除记录 [英] how remove record from grid with parametr
本文介绍了如何使用parametr从网格中删除记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
i从网格中删除记录。但在删除之前显示此消息
你删除这个recore:ali
i想要从网格发送参数。
我的代码
< a href = @ Url.Action( del, Faculty, new { id = item .Faculty_Name }) title = del class = btndel >
< < span class =code-leadattribute> img src = @ Url.Content( 〜/ Content / Images / webgrid / delete.png ) / >
< / a >
$(。btndel)。live(click,function(e){
// e.preventDefault() ;使用它或返回false
url = $(this).attr('href');
$(#dialog-confirm)。dialog('open');
返回false;
});
解决方案
(。btndel)。live(click,function(e){
// e.preventDefault();使用它或返回false
url =
(this).attr('href');
< blockquote>(#dialog-confirm)。dialog('open');
return false;
});
hi
i when remove record from grid .but before remove show this message
"are you remove this recore:ali"
i want send parametr from grid .
this my code
<a href="@Url.Action("del", "Faculty", new { id = item.Faculty_Name })" title="del" class="btndel">
<img src="@Url.Content("~/Content/Images/webgrid/delete.png")" />
</a>
$(".btndel").live("click", function (e) {
// e.preventDefault(); use this or return false
url = $(this).attr('href');
$("#dialog-confirm").dialog('open');
return false;
});
解决方案
(".btndel").live("click", function (e) { // e.preventDefault(); use this or return false url =
(this).attr('href');
("#dialog-confirm").dialog('open'); return false; });
这篇关于如何使用parametr从网格中删除记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文