需要实现H1中显示的是当前页面的TITLE这是products_info.aspx 产品内页中添加成功的代码:
<div><h1>
<asp:Label ID="lblTitle" runat="server" ></asp:Label></h1></div>
怎么在products.aspx 产品目录中也添加这样的代码? 是不是需要在cs文件中添加?
<div><h1>
<asp:Label ID="lblTitle" runat="server" ></asp:Label></h1></div>
怎么在products.aspx 产品目录中也添加这样的代码? 是不是需要在cs文件中添加?
<asp:Literal ID="lblTitle" runat="server"></asp:Literal>而不是Label ,Label 会产生span标签,Literal 则不会