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

框架页cs内部跳转有关问题

2012-04-22 
框架页cs内部跳转问题cs代码中if (true){Response.Write(scriptdocument.location/guocheng/index.as

框架页cs内部跳转问题
cs代码中
if (true)
{
  Response.Write("<script>document.location='/guocheng/index.aspx' target='_parent'</script>");
}

没有达到预想的效果
aspx中的代码是 <a href="/guocheng/index.aspx" target="_parent">

我要在左侧框架页的节点中点节点然后使整个系统回退到登陆界面。


[解决办法]
Response.Write("<script>top.location='" + Page.ResolveUrl("~/Login.aspx") + "'</script>");
转绝对地址
看这个http://topic.csdn.net/u/20120331/16/e32cfda1-0522-4a53-a5f4-9a8f55d3d49e.html

热点排行