Is there a simple way of referencing the page header title from web.congfig file?
<title runat="server"><%$ AppSettings:HeaderTitle %>"</title>
this gives complying error
and when I use label like :
<title runat="server"><asp:Label ID="MainTitle" runat="server" Text="<%$ AppSettings:HeaderTitle %>" /></title>
then the result contains span element.
Try using Literal
control - it won't output any tags at all:
<title runat="server">
<asp:Literal ID="MainTitle" runat="server" Text="<%$ AppSettings:HeaderTitle %>" />
</title>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.