我在我的asp.net/c#页面中有一个简单的gridview
控件我想显示一条消息,显示删除我的行时“删除成功”我尝试使用此但它没有效果。
我的代码是这个..无法使用代码隐藏将脚本插入到asp页面
script = string.Format(@"<script type='text/javascript'>alert('Successfully deleted');</script>");
if (Page != null && !Page.ClientScript.IsClientScriptBlockRegistered("alert"))
{
Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "alert", script);
}
谁能帮我请,我是新来的..
Thaks
-Vishu
感谢很多的div标识...它工作得很好:) – 2013-02-15 07:52:01
请接受anenswer then – Moons 2013-02-15 07:55:39