StringBuilder s = new
StringBuilder();
s.Append("<script
language=javascript>");
s.Append("window.parent.document.getElementById(‘dialogCase‘).style.display =
‘none‘;window.parent.document.location.reload();");
s.Append("</script>");
Type cstype =
this.GetType();
ClientScriptManager cs =
Page.ClientScript;
string sname =
"lt";
if
(!cs.IsStartupScriptRegistered(cstype,
sname))
cs.RegisterStartupScript(cstype, sname, s.ToString());