I've read about people using a placeholder instead, but I've can't seem to
figure out how to remove the <span> tags that appear in my example...
Anybody?
<title>
<asp:PlaceHolder id="ph" runat="server" />
</title>
Protected ph As WebControls.PlaceHolder
Page_Load...
Dim mylabel As New System.Web.UI.WebControls.Label
mylabel.Text = "My Title"
ph.Controls.Add(myLabel)
Greg
"Marina" <so*****@nospam.com> wrote in message
news:u%******************@TK2MSFTNGP12.phx.gbl...
I think that is just something it does unfortunately. You would either
have to keep fixing it, or keep the page in HTML view.
"Brad" <no****@co.lane.or.us> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl... I'm placing a runat=server attribute on the <title> tag in my pages,
so I can read/set the title text in code. The problem is that when I
subsequently change the page in design view VS is removing the
runat=server from the <title> tag. Unfortunately it does not do it all the
time...maybe 50%.
Brad