本文介绍了母版页链接按钮未显示在内容页中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
母版页面链接按钮未显示在内容页面中吗?
Master Page Link Button not display in the content Page?
推荐答案
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!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 runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</head>
<body>
<form id="form1" runat="server">
The Master Page Button;<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
<div>
the content place holder;
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</div>
</body>
</html>
内容页面来源;
Content Page Source;
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Master Page Basic Source;
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!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 runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
The Master Page Button;<asp:Button ID="Button1" runat="server" Text="Button" />
<div><code></code>
the content place holder;
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>&amp;lt;/form&amp;gt;
</body>
</html>
这篇关于母版页链接按钮未显示在内容页中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!