首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

头文件调用,页面位置如何显示在上方呢

2012-08-09 
头文件调用,页面位置怎么显示在下方呢?我建立个头文件,文件名是MasterPage.master 但在页面上调用时,显示

头文件调用,页面位置怎么显示在下方呢?
我建立个头文件,文件名是MasterPage.master 但在页面上调用时,显示的位置不在页面上方,不知哪里弄错。
我的代码:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div style="border: thin solid #3399FF; width:888px;">
测试数据
</div>
</asp:Content>
说明:页面显示出来,“测试数据” 显示在最上方,MasterPage.master头文件内容显示在下方。
请高手指点。



[解决办法]
问题应该在MasterPage.master头文件中
[解决办法]
这个取决于你母板页中的布局了,你使用母板页的页面相当于一个把母板页中的占位符填上

热点排行