我在asp网站上工作,我需要修改标题和描述。我正在开发网站,我没有那么多的经验来理解它。我在数据库中有很多可以检索标题和描述标签的字段,但是我需要将这些数据放在这个块中。我不知道如何。在asp网站中的标题标签和描述标签
你能告诉我在哪里可以包括我的数据库字段..什么意思是方块内的字段.. [BriefDescription]。
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ElectroDos.Master" CodeBehind="detail.aspx.vb" Inherits="ElectroDos.results" EnableEventValidation="false" %>
<asp:Literal ID="MetaDescription"
runat="server"
Text='<META name="DESCRIPTION" content="[MfrName] [ModelNumber] - [BriefDescription] - Available for rent from ElectroDos.">'
EnableViewState="false" />
<asp:Literal ID="Title"
runat="server"
Text="<title> [MfrName] [ModelNumber] product detail and options available from ElectroDos. </title>"
EnableViewState="false" />
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<script src="/js/details.js" type="text/javascript"></script>
,因为它们是你可以设置'Text'酒店需要从服务器控件无论你想要的背后的代码。 –
我已经使用了类似Title.Text =“testing”的内容,但文本“测试”出现在正文中,没有任何标签,标题标签不会改变 – jacr1614
您必须将标题标签放入该文本 –