关于网页重复提交的问题 提交事件程序后缀上“Response.Write("<script>window.location.href=window.location.href;</script>");Response.End();"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在 每次 执行完后 添加一句。Response.Write("<script>window.location.href='" + Request.Url.ToString() + "';</script>");就可以了。 禁止ctrl+n和禁止ctrl+r和禁止shift+f10禁止鼠标右键or左右键和禁止f5 <Script> var oLastBtn=0,bIsMenu=false if (window.Event) { document.captureEvents(Event.MOUSEUP); } function nocontextmenu() { event.cancelBubble=true; event.returnValue=false; return false; } function norightclick(e) { if(window.Event) { if (e.which !=1) { return false; } } else if(event.button!=1) { event.cancelBubble=true; event.returnValue=false; return false; } } document.oncontextmenu=nocontextmenu; document.onmousedown=norightclick; function onKeyDown() { if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116)) { event.keyCode=0; event.returnValue=false; } } </Script> <body onkeydown="onKeyDown()"> jquery ajax 关于Forms验证的简单问题 用TABLE读到数据后使用超连接后如何再加如鼠标悬停显示其他信息? 散分300~~网站速度国外访问检测点布置完毕! Spring Hibernate问题 ++++++++++++如何利用sql存储过程,删除一条符合条件的数据记录??? 问大家一个有关时间的问题 用事务多表插入问题 谁给我讲讲像CSDN这样点击一个主题打开一个网页是怎么实现的? 如何保证 .net 生成的代码适配不同的浏览器? 各位实现图片新闻...给一点思路.. 我决定把我的项目管理器开源
Response.Write("<script>window.location.href='" + Request.Url.ToString() + "';</script>");
就可以了。
<Script>
var oLastBtn=0,bIsMenu=false
if (window.Event)
{
document.captureEvents(Event.MOUSEUP);
}
function nocontextmenu()
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
function norightclick(e)
{
if(window.Event)
{
if (e.which !=1)
{
return false;
}
}
else
if(event.button!=1)
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
}
document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick;
function onKeyDown()
{
if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116))
{
event.keyCode=0;
event.returnValue=false;
}
}
</Script>
<body onkeydown="onKeyDown()">