关于关闭窗体时执行操作!!!!! 怎样能在页面关闭时执行修改数据库的操作! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Global.csprotected void Application_EndRequest(Object sender, EventArgs e){}要么在<body onbeforeunload="form1.submit()"> 使用:〈body onbeforeunload="closeIt();">function closeIt() { if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { //window.event.returnValue="确定要退出本页吗?"; alert('我要退出啦!') //document.frames.exitframes.location.reload("exit.aspx?id=2"); document.frames.exitframes.location.href="exit.aspx?id=2"; } else { return false; } }exit.asx你可以放到 一个隐藏 iframe里,大多网站都 这样。exit.aspx:Sessin.Remoll() or Session["dd"].clea();http://community.csdn.net/Expert/topic/3391/3391901.xml?temp=.8536188类似一样的操作http://community.csdn.net/Expert/topic/3404/3404491.xml?temp=.2965662 问个updatepanel和验证控件配合的问题 研究别人代码,这个地方怎么写? 请问能否这样? 没有分了,菜鸟请教字符串截取 c# rdlc报表行组号的问题 &&&&&&& 关于ListBox中自增量,自减量问题!烦请大家帮忙看看 &&&&&&&& 紧急求助:关于3层开发的问题!!! C#创建ldap用户问题 asp.net怎么做下载手机图片和岭声的功能? 关于Windows .NET 使用ASP .NET 学用webeditbox控件,下载了一个,但里面没有data2003.xml和dataxp.xml两个XML文档,谁有啊,发一个给我啊 XML添加结点问题.
protected void Application_EndRequest(Object sender, EventArgs e)
{}要么在<body onbeforeunload="form1.submit()">
function closeIt()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
{
//window.event.returnValue="确定要退出本页吗?";
alert('我要退出啦!')
//document.frames.exitframes.location.reload("exit.aspx?id=2");
document.frames.exitframes.location.href="exit.aspx?id=2";
}
else
{
return false;
}
}exit.asx你可以放到 一个隐藏 iframe里,大多网站都 这样。
exit.aspx:
Sessin.Remoll() or Session["dd"].clea();http://community.csdn.net/Expert/topic/3391/3391901.xml?temp=.8536188
类似一样的操作
http://community.csdn.net/Expert/topic/3404/3404491.xml?temp=.2965662