首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

注册成功后跳转另外页面如何做

2012-09-28 
注册成功后跳转另外页面怎么做Response.Write(scriptalert(评论成功!!)location.hreflocation.href

注册成功后跳转另外页面怎么做
Response.Write("<script>alert('评论成功!!');location.href=location.href</script>");

上面这句话注册成功后跳转,到另外页面怎么做啊. 

  Help.alert("恭喜!注册成功!", "denglu.aspx");//这句话可以跳转,但是效果不好

[解决办法]
Response.Redirect("denglu.aspx");
[解决办法]
Response.Write("<script>alert('提交成功');window.location.href= 'IntroSchedule.aspx'; </script>");
弹出提交成功后点击确定,跳转到IntroSchedule.aspx页面
[解决办法]
window.location.href的路径是相对于你当前页面
[解决办法]
Response.Write("<script>alert('评论成功!!');location.href='/Users/index.aspx'</script>");

用Page.ClientScript.RegisterStartupScript 跳转方法很多
[解决办法]
Response.Redirect("denglu.aspx");
[解决办法]

探讨

Response.Redirect("denglu.aspx");

[解决办法]
C# code
this.RegisterClientScriptBlock(null,"<script>alert('评论成功!!');location.href='denglu.aspx';</script>");
[解决办法]
Response.Write("<script>alert('评论成功!!');location.href='denglu.aspx';</script>");


[解决办法]
Response.Write("<script>alert('评论成功!!');location.href='denglu.aspx';</script>");
[解决办法]
用response.Redirect 或者 window.location.href

热点排行