如何在编辑中使用ASP.NET中的SqlDatasource从gridview删除更新数据后显示弹出消息 [英] How to display a pop up message after editing deleting updating data from gridview using SqlDatasource in ASP.NET

查看:124
本文介绍了如何在编辑中使用ASP.NET中的SqlDatasource从gridview删除更新数据后显示弹出消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello FRnds,



使用GRIDVIEW更新数据我在gridview中有更新命令btn。

通过使用Sql Datasource我填写gridview中的数据,我也可以编辑使用sql数据源删除这些数据。



最后,我需要在编辑和删除数据后弹出一条消息。 />


如删除后应显示为记录成功删除。

和编辑也一样。



但是我在这里使用了Sql Datasource ....





请帮助。谢谢。

Hello FRnds,

Am updating data using GRIDVIEW i have a update command btn inside gridview.
By using Sql Datasource i fill the data in gridview and also i can edit delete this data using sql datasource.

So finally, i need a Pop up message after editing and deleting the data.

such as after deleting it should display as Records successfully deleted.
and same thing for editing also.

But i used Sql Datasource here....


Please help. THANKS.

推荐答案

删除数据后你应该这样写;



ScriptManager.RegisterClientScriptBlock(base。 Page,this.GetType(),FooterRequired,alert(''通知:记录删除成功'');,true);



同样的事情你也可以申请编辑。



我希望这会对你有所帮助。
After deleting data u should write like that ;

ScriptManager.RegisterClientScriptBlock(base.Page, this.GetType(), "FooterRequired", "alert(''Notification : Record deleted successfully'');", true);

Same thing u can apply for edit also.

I hope this will help u.


用正确的话来说话,这就是显示成熟度level。
Use right words to speak ,this is show maturity level.


使用正确的词语,这是显示成熟度级别。
Use right words to speak ,this is show maturity level.


这篇关于如何在编辑中使用ASP.NET中的SqlDatasource从gridview删除更新数据后显示弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆