动态调用框架 分为上下页面,我在成功登入后,根据不同的值,来定位下半部分的页面的URL,如何做到呢?在服务器端代码中不能写入代码来取吧?用parent.src='index.aspx'得不到。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 提点思路(本人对js不了解)你可以在前台页面里控制ifrem的height 来控制它的显示和隐藏吧 在后台写HTML代码:例子Response.ContentType = "text/HTML";Response.Write(" <frameset rows=\"36,82%\" border=\"0\" frameSpacing=\"0\" frameBorder=\"0\">");Response.Write("<frame name=\"top\" src=\"top.aspx\" noResize scrolling=\"no\">");Response.Write("<frame name=\"bottom\" src=\"bottom.aspx\">");Response.Write("</frameset>");根据条件做就行了, 在登入页面用Response.Redirect("Dynamicframe.aspx?url=footer.aspx");Dynamicframe.aspx接收从上一个页面传过来的下半部分页面的URL值 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><frameset rows="80,*" frameborder="no" border="0" framespacing="0"> <frame src="head.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> <frame src="<% = Request.QueryString("url")%>" name="mainFrame" id="mainFrame" title="mainFrame" /></frameset><noframes><body></body></noframes></html>----------------------------------------------------------------www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得asp.net2.0资料http://www.cndigs.com/search.php?search=asp.net%202.0&tag=trueasp.net资料http://www.cndigs.com/search.php?search=asp.net&tag=trueajax资料http://www.cndigs.com/search.php?search=ajax&tag=true 求一免费的表格控件 using哪个空间? 关于生成图片的问题,想做一个类似生成BANNER的东西 LoginStatus状态不对 请问怎样判断 TextBox 中输入的是整数? 时间倒计时无刷新 关于DataSet中一个小问题! 请教一个关于ajax.dll的问题 奇怪的问题:"&"变成了"&",请指点!!! 关于文件访问的权限问题 aspx页面单击服务器按钮处理完后,怎么关闭当前页? 无法打开asp.net程序
例子
Response.ContentType = "text/HTML";
Response.Write(" <frameset rows=\"36,82%\" border=\"0\" frameSpacing=\"0\" frameBorder=\"0\">");
Response.Write("<frame name=\"top\" src=\"top.aspx\" noResize scrolling=\"no\">");
Response.Write("<frame name=\"bottom\" src=\"bottom.aspx\">");
Response.Write("</frameset>");根据条件做就行了,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="head.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="<% = Request.QueryString("url")%>" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
----------------------------------------------------------------
www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得
asp.net2.0资料
http://www.cndigs.com/search.php?search=asp.net%202.0&tag=true
asp.net资料
http://www.cndigs.com/search.php?search=asp.net&tag=true
ajax资料
http://www.cndigs.com/search.php?search=ajax&tag=true