如何在ASP.NET 4.0 c#中获取确认后从Gridview控件中删除记录 [英] How to Delete a Record from Gridview Control after getting confirmation in ASP.NET 4.0 c#
本文介绍了如何在ASP.NET 4.0 c#中获取确认后从Gridview控件中删除记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我想删除数据库表中绑定到C#中ASP.NET的Gridview控件的记录时,我希望在收到确认消息后从Gridview控件中删除记录,例如 - 您确定是或否。当我按是按钮时,应该删除记录,当我按否时不应该删除。如何在ASP.NET中通过C#4.0执行此操作?
When I want to delete a record in the database table which is bound to the Gridview control in ASP.NET in C# I want to remove the record from Gridview control after getting a confirmation message eg- Are You Sure Yes or No. When I press Yes button the record should be deleted and when I press No no deletion should occur. How can i do this in ASP.NET thru C# 4.0?
推荐答案
请参阅下面提到的文章...
1. ASP.NET GRIDVIEW - 删除行确认 [ ^ ]
2. Asp.net使用确认框示例删除gridview记录 [ ^ ]
Refer the articles mentioned below...
1. ASP.NET GRIDVIEW - DELETE ROW WITH CONFIRMATION[^]
2. Asp.net Delete gridview records with confirmationbox example[^]
你好Leo,
快速谷歌搜索给了我这个链接 [ ^ ]。
希望这对你有所帮助。
快乐的编码,玩得开心。
问候,
RK
Hi Leo,
Quick google search gave me this link[^].
Hope this help you a bit.
Happy coding, Have fun.
Regards,
RK
您好b $ b
我在下面的链接中找到了一些关于此事的提示:
http://www.aspdotnet-suresh.com [ ^ ]
以及链接:
www.webcodeexpert.com [ ^ ]
我希望他们帮助你。
最好的问候
Hi
I found some tips on the matter in the link below:
http://www.aspdotnet-suresh.com[^]
and also in the link:
www.webcodeexpert.com[^]
I hope they help you.
best regards
这篇关于如何在ASP.NET 4.0 c#中获取确认后从Gridview控件中删除记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文