当前位置:编程学习 > C#/ASP.NET >>

请问ASP的框架代码是怎么样的??

个位大虾好。我是位新手。想在kj.asp中实现三个框架。分别是上、中、下。想在上框架显示1.asp,中框架显示2.asp,下框架显示3.asp。
我是用Dreamweaver编的。想在.asp的网页中实现显示另一个.asp的网页的框架结构功能。请问代码如何?谢谢。 --------------------编程问答-------------------- 用Dreamweaver编的是使用 .html 实现框架功能的。这个我可以显示了。但我想显示.asp的网页。不知道代码是怎样的??
请各位路过的大虾告诉我一声。谢谢! --------------------编程问答-------------------- 怎么没人回答我吗?
我自己顶自己一下。 --------------------编程问答-------------------- target这个属性
如target="2.asp" --------------------编程问答-------------------- 这位大哥你能再说的详细一点吗?我的kj.asp的代码是这样的?应该如何改?
不过这样显示的只有代码。没有显示功能。
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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,*,80" frameborder="no" border="0" framespacing="0">
  <frame src="topFrame-1.asp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="mainfram.vbs" name="mainFrame" id="mainFrame" title="mainFrame" />
  <frame src="bottomFrame-1.asp" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
谢谢各位大虾帮忙啊! --------------------编程问答-------------------- kj.asp代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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,*,80" frameborder="no" border="0" framespacing="0">
  <frame src="topFrame-1.asp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="mainfram-2.asp" name="mainFrame" id="mainFrame" title="mainFrame" />
  <frame src="bottomFrame-1.asp" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>

mainfram-2.asp代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<img src="/kuangjia/image/1104467655771.jpg" alt="" />
</body>
</html>
请问要如何改啊?
--------------------编程问答-------------------- 去掉<body></body>
--------------------编程问答-------------------- kj.asp中去掉<body></body>
--------------------编程问答-------------------- Target="框架名" --------------------编程问答-------------------- kj.asp代码是这样吗?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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,*,80" frameborder="no" border="0" framespacing="0">
  <frame src="topFrame-1.asp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="mainfram-2.asp" name="mainFrame" id="mainFrame" title="mainFrame" />
  <frame src="bottomFrame-1.asp" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes>
</noframes>
</html>
可也还是不行啊。
不能正常显示网页。
只显示了mainfram-2.asp的代码 --------------------编程问答-------------------- 在线等待中. --------------------编程问答-------------------- 这个用框架显示主页
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,