private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
string sWrite;
sWrite="<frameset border='0' rows='260'>"
+ "<frame name='test'src='b.aspx' noResize scrolling='auto'>"
+ "</frameset>";
Response.Write(sWrite);
}
}是要这个吗?如果不对请见谅
{
if(!Page.IsPostBack)
{
string sWrite;
sWrite="<frameset border='0' rows='260'>"
+ "<frame name='test'src='b.aspx' noResize scrolling='auto'>"
+ "</frameset>";
Response.Write(sWrite);
}
}是要这个吗?如果不对请见谅
解决方案 »
- 关于httpWebRequest请求失败错误:The specified call count is not a number
- ASP.NET DropDownList 省市县三级联动
- .net到底能不能得到客户端mac地址
- 如何实现定时读取XML中的数据存入数据库啊?
- .net怎么插入flash
- 为什么传递内容不变
- 各位高手进业帮帮忙,我明天要用的,谢谢! ^_^
- 在.NET中新建一个ASP.NET Web Application时,报错!
- 【求助】实现下载功能,请高手指教!!!!!!!!!
- asp.net中 ispostback在tt浏览器中点击后退后,ispostback又变回true
- 急~~~
- 有关页面事件的初级问题
a.aspx<iframe src='<%=Request.QueryString["id"].ToString()%>'>
Iframe.Attributes["src"]="b.aspx";
Session["frame"] = "<script language=JavaScript>parent.contents.location.href=\"/b.aspx\";</script>";
存到Session中,
再在a.aspx的Page_Load中
string Frame = Session["frame"].ToString();
Response.Write(Frame);
应该可以,我没试,你看看吧。