您的位置:首页 > 其它

MasterPage轻松使用三步走(VS2005的新东东MasterPage)

2007-04-13 22:34 453 查看
MasterPage轻松使用三步走(VS2005的新东东MasterPage)

(1)

创建母版 new -> 选择MasterPage

(2)

新建Form -> 勾选使用母版

加载母版的ASPX代码头:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Welcome.aspx.cs" Inherits="com.thoughtchina.pms.Pages_Welcome" Title="Untitled Page" %>

(3)

母版放置内容的容器:

MasterPage.master

<asp:ContentPlaceHolder ID="cphPage" runat="server" >

</asp:ContentPlaceHolder>

注:内容最好为<table></table>包含,否则VS2005的的IDE预览不了图形界面.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: