日期:2014-05-17  浏览次数:20604 次

Response.Redirect传参后的疑问~

如图,有一登陆界面Login.aspx

从Login.aspx将用户信息传到C处进行处理,处理完毕之后A和B不显示~求指教
Login.aspx处代码
C# code

       Response.Redirect("Welcome.aspx?val="+userName);


C处界面代码
C# code

        //获取传过来的用户Id
        public string GetUser_id()
        {
           string user_id = Request.QueryString["val"].ToString();
           return user_id; 
        }



求大神指教~还有什么属性没弄好么

------解决方案--------------------
你这个ABC是分别三个页面吗?没明白你要干什么啊
------解决方案--------------------
Welcome.aspx

HTML code
<frameset rows="25,*"  frameborder="no" frameborder="1" framespacing="0">
    <frame src="a.aspx" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="tops" />
  <frameset cols="184,*"   id="Leftframe">
    <frame src="b.aspx" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="1" scrolling="no" target="lefts" />
    <frame src="c.aspx" name="main" marginwidth="0" marginheight="0" frameborder="1" scrolling="auto" target="main" />
  </frameset>

------解决方案--------------------
你这个应该是iframe的问题吧。。。。试试在C页面中加上
<script type="text/javascript">
function Redirect()
{
window.top.location = "c.aspx";
}
</script>

<body onload="Redirect();">
</body>