我想在asp.net网格视图中使用一个cofirm框 [英] i want to use a cofirm box in asp.net grid view
本文介绍了我想在asp.net网格视图中使用一个cofirm框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
befor用户从gridview中删除记录我想显示确认用户如何使用确认框中的返回值...
befor user deletes the record from gridview i want to display a confirm t the user how to use the return value from the confirm box...
推荐答案
如果在TemplateField
内,则将属性添加到控件中属性。
如何在ASP.Net Gridview中添加确认删除选项? [ ^ ]。
Just addonClientClick
attribute to the control if insideTemplateField
.
How to add a "confirm delete" option in ASP.Net Gridview?[^].
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:ImageButton ID="DeleteButton"
runat="server"
ImageUrl="~/site/img/icons/cross.png"
CommandName="Delete"
OnClientClick="return confirm('Are you sure you want to delete this event?');"
AlternateText="Delete" />
</ItemTemplate>
</asp:TemplateField>
并检查在GRIDVIEW DELETING上显示确认消息 [ ^ ]使用选项A:使用ShowDeleteButton CommandField 和选项B:使用带LinkButton 的TemplateField的详细而清晰的实现技术。
谢谢...
And also check DISPLAY CONFIRMATION MESSAGE ON GRIDVIEW DELETING[^] for detailed and clear implementation techniques using "Option A: Using the ShowDeleteButton CommandField" and "Option B: Using TemplateField with LinkButton".
Thanks...
您是否尝试过搜索谷歌 [ ^ ]?
它有大量满足您要求的示例,顶部链接为:
ASP.NET GridView删除确认使用asp:CommandField [ ^ ]
confirm-delete-for-gridview.html [ ^ ]
添加-conf-confirm-javascript-popup-to-net-gridview [ ^ ]
Did you try searching google[^]?
It has ample amount of examples addressing your requirement, top links being:
ASP.NET GridView delete confirmation using asp:CommandField[^]
confirm-delete-for-gridview.html[^]
adding-a-confirm-javascript-popup-to-net-gridview[^]
这篇关于我想在asp.net网格视图中使用一个cofirm框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文