the server has no idea where you put your frame, you have to send it back using javascript, for example<form onsubmit="hid.value=top.location.href;return true;" runat="server">
<input id="hid" type=hidden runat="server">
....
</form>on the server side,
string sURL = hid.Value;
<input id="hid" type=hidden runat="server">
....
</form>on the server side,
string sURL = hid.Value;
例如:
你将 ?UName=aaa 传入 saa.aspx这一子窗体时,你可以如下写:
在框架页中写
<frameset ...>
<frame src=saa.aspx?UName=<%=Request["UName"].Tostring()%>>
</frameset>
然后你就可以在 saa.aspx 页的Page_Load()事件中用
string strAA = Request["UName"].ToString()得到所传的数据了。