aspx頁面代碼
<head runat="server">
<%-- <title>Java中文網(wǎng):http://www.javaweb.cc</title>--%>
<asp:Literal ID="ltPageTitle" runat="server"/>
<asp:Literal ID="ltPagekeywords" runat="server" />
<asp:Literal ID="ltPagedescription" runat="server" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
cs頁面代碼
string keywords = "Java中文網(wǎng),java,j2ee,javascript,java軟件,java教程,j2ee教程,java下載";
string description = "Java中文網(wǎng)為程序員和企業(yè)開發(fā)者提供海量的Java資料,最新Java軟件下載,從語言基礎(chǔ)到系統(tǒng)架構(gòu)所有內(nèi)容,涵蓋開發(fā)的各個(gè)技術(shù)層面,眾多實(shí)例和源代碼以及教程,已成為程序員必上的Java中文網(wǎng)站。";
ltPageTitle.Text = " <title>頁面標(biāo)題</title> ";
ltPagekeywords.Text = "<meta name="keywords" content=""+keywords+""> ";
ltPagedescription.Text ="<meta name="description" content=""+description+""> ";
更多信息請查看IT技術(shù)專欄