日期:2014-05-18  浏览次数:20490 次

防止刷新重复提交数据一个小问题
If   dal.ExecuteSql(sqlstr)   Then  
                      common.AlertMessage( "评论成功 ")
                        G1DataBind()
                        Response.Redirect( "PingLun.aspx?spmbm= "   &   bh)
End   If

这样可以防止刷新提交重复数据
但是问题是   不能弹出那个“评论成功”的对话框了

请问着呢名解决?
谢谢!

------解决方案--------------------
PingLun.aspx?tag=ok 在这个页面

if (Request.QueryString[ "tag "] != null)
{
ScriptManager.RegisterClientScriptBlock(this,this.GetType(), " ", "alert( '添加成功 ') ",true);
}