0
我在申請將CSS佈局應用於Asp controls/content的正確語法方面有所幫助。將CSS模板應用於包含內容/控件的ASP頁面
對於正常.aspx
頁我通常鏈接到CSS模板類似下面的頭.....
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="Project.Default" %>
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="wp-content/themes/newtheme/css/reset.css"
type="text/css" media="screen">
<%--....etc--%>
<script>
<%--....etc--%>
</script>
</head>
<%--....etc--%>
<body id="page1">
<%--....etc--%>
</body>
</html>
我該如何申請一個類似CSS模板控制在基本頁面結構是以下格式?
<%@ Page Title="Login" Language="C#"
MasterPageFile="~/themes/default/default.master"
AutoEventWireup="true" Inherits="login"
EnableViewState="false" Codebehind="login.aspx.cs" %>
<%@ Register Src="controls/login-with-captcha.ascx"
TagName="LoginWithCaptcha" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<meta name="robots" content="NOINDEX, NOFOLLOW"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<uc1:LoginWithCaptcha ID="LoginWithCaptcha1" runat="server" />
</asp:Content>