1*.aspx.cs
string IsSucess="false";
try
{
IsSucess="true";
}
catch
{
IsSucess="false";
}
string strTmp="<script language=javascript>ExitWindow("+IsSucess+");</script>";
if(!this.IsClientScriptBlockRegistered("clientScript"))
this.RegisterStartupScript("clientScript", strTmp);
2*.aspx[HTML]
<script language="javascript">
<!--
function ExitWindow(sure)
{
if(sure)
window.close();
else
{
window.alert("删除失败!\n请先删除关联的记录后,在重试此操作。");
window.close();
}
}
//-->
</script>
string IsSucess="false";
try
{
IsSucess="true";
}
catch
{
IsSucess="false";
}
string strTmp="<script language=javascript>ExitWindow("+IsSucess+");</script>";
if(!this.IsClientScriptBlockRegistered("clientScript"))
this.RegisterStartupScript("clientScript", strTmp);
2*.aspx[HTML]
<script language="javascript">
<!--
function ExitWindow(sure)
{
if(sure)
window.close();
else
{
window.alert("删除失败!\n请先删除关联的记录后,在重试此操作。");
window.close();
}
}
//-->
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货