ASP.NET中实现弹出消息框后跳转至另一带参数页面(Javascript)
2010-09-20 09:07
666 查看
Response.Write("<script language='javascript'>alert('请输入用户名或密码!');window.location='BillDayDetail.aspx?UserID="+UserID+ "';</script>");
注意Windows.location而非href.location
=====javascript中弹出选择框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
if (confirm("你确定要注销身份吗?/n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
=====javascript中弹出提示框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
alert("你确定要注销身份吗?");
window.location.href="logout.asp?act=logout"
}
-->
</script>
=====ASP中直接跳转到其他页面===========
<%
response.redirect "logont.asp"
%>
=====Html中确认后弹出新页面===========
function Del(id)
{
if (confirm("你确定要删除吗?"))
{
window.open("otherfile.asp?ID="+id+"&act=del","top","width=640,height=400")
}
}
=====Html中确认后跳转到其他页面=========
function Del(URL)
{
if (confirm("你确定要删除吗?"))
{
//URL="otherfile.htm"
window.location.href=URL
}
}
注意Windows.location而非href.location
=====javascript中弹出选择框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
if (confirm("你确定要注销身份吗?/n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>
=====javascript中弹出提示框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
alert("你确定要注销身份吗?");
window.location.href="logout.asp?act=logout"
}
-->
</script>
=====ASP中直接跳转到其他页面===========
<%
response.redirect "logont.asp"
%>
=====Html中确认后弹出新页面===========
function Del(id)
{
if (confirm("你确定要删除吗?"))
{
window.open("otherfile.asp?ID="+id+"&act=del","top","width=640,height=400")
}
}
=====Html中确认后跳转到其他页面=========
function Del(URL)
{
if (confirm("你确定要删除吗?"))
{
//URL="otherfile.htm"
window.location.href=URL
}
}
相关文章推荐
- ASP.NET&Javascript实现半透明背景&模式弹出个性化页面实例
- asp.net中实现倒计时自动跳转页面(运用javascript)
- asp.net中倒计时自动跳转页面的实现方法(使用javascript)
- ASP.NET&Javascript实现半透明背景&模式弹出个性化页面实例
- asp.net中倒计时自动跳转页面的实现方法(使用javascript)
- asp.net带参数的页面跳转
- 在ASP.NET中使用IFRAME+DIV,可以实现在同一页面使用弹出(模态)窗口
- Silverlight - Xaml 和 asp.net 页面之间跳转及参数传递
- ASP.NET Boilerplate 学习 AspNet Core2 浏览器缓存使用 c#基础,单线程,跨线程访问和线程带参数 wpf 禁用启用webbroswer右键菜单 EF Core 2.0使用MsSql/MySql实现DB First和Code First ASP.NET Core部署到Windows IIS QRCode.js:使用 JavaScript 生成
- asp.net 页面跳转 隐藏参数显示
- 【C#.NET】ASP.NET中实现页面间的参数传递 QueryString\Application\Session\Cookie
- C# ASP.NET中无刷新页面 弹出对话框,并且页面跳转
- ASP.NET弹出提示点击确定之后再跳转页面的方法
- javascript传值和页面跳转传值(ASP.NET页面传参的三种方法)
- ASP.NET中配合JS实现页面计时(定时)自动跳转
- javascript 异步页面查询实现代码(asp.net)
- 在ASP.NET中实现页面间的参数传递
- asp.net 实现n秒后页面自动跳转
- asp.net使用javascript实现不刷新页面获取当前时间
- [转]在Asp.net中弹出对话框,然后跳转到其他页面问题