<h1><%# variable %></h1>
You can also use
<h1 id="hgcHeader" runat="server" />
and then in your code-behind, set the text as follows:
hgcHeader.InnerText = variable;
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"John Haycock" <jh***@blueyonder.co.ukwrote in message
news:1J*****************@fe3.news.blueyonder.co.uk ...
Hi
I want to take a variable I have read from a database and place it in
<h1></h1tags on the web page. What's the best/easiest way to do this?
I don't want to use an asp:label because this is rendered as a <span>.
Thanks in advance
John