我用模板页新建了一个页面,在这个页面中想用框架,可以吗?<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="dxlbs.index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<frameset border="1" framespacing="0" cols="250, *" frameborder="0">
<frame name="left" marginwidth="0" marginheight="0" src="left.aspx" frameborder="0" noresize="noresize" scrolling="no">
<frame name="conter" marginwidth="0" marginheight="0" frameborder="0" noresize="noresize">
</frameset>
</asp:Content>这个不能运行,但是我的意图应该通过这个可以看出来,希望各位帮忙解决!也可以给我一些别的意见!谢谢!框架ASP.NET模板页
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<frameset border="1" framespacing="0" cols="250, *" frameborder="0">
<frame name="left" marginwidth="0" marginheight="0" src="left.aspx" frameborder="0" noresize="noresize" scrolling="no">
<frame name="conter" marginwidth="0" marginheight="0" frameborder="0" noresize="noresize">
</frameset>
</asp:Content>这个不能运行,但是我的意图应该通过这个可以看出来,希望各位帮忙解决!也可以给我一些别的意见!谢谢!框架ASP.NET模板页
解决方案 »
- 球一句sql
- 在mvc 控制器与视图中Cookies 怎么用啊?请大家帮帮忙啊!
- 在detailsview里修改的字段值没被提交,各位帮我看下.
- 初学者提问windows service
- 请问使用request获取了from的值,如何和数据库中的字段比较?
- 如何把HTML格式转成页面?
- 如何操作httpxml对象返回的xml对象(如取出某一个节点的内容),网上有类似的源代码吗?
- 安装了Visual Studio .net,但IIS不能执行aspx文件.
- 怎么使一个弹出窗口使中在前面!!??
- 如何在客户端使用Delete语句
- gridview中buttonfield的应用
- 异常详细信息: System.ArgumentNullException: String 引用没有设置为 String 的实例。
需要把 FRAMESET 放到master 文件里面,而且要放到header 下面 body 外面,<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Webform.SiteMaster" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
<frameset cols="25%,*">
<frame src="http://bbs.csdn.net/">
<frame src="frame_c.htm">
</frameset>
<body>
</body>
</html>
另外,最简单的办法是用iframe
<iframe id="frm1" src="http://localhost/NetShopping/Home.aspx" width="1300px" ></iframe>iframe 没有位置限制, 你可以随意的
http://www.w3.org/TR/html401/frameset.dtd