G
Guest
Some days ago I asked this forum whether it is possible to set up the <title> from the code-behind. A couple of poeple helped me and in fact it is quite ease:
a) change the HTML, e.g.:
<title id="titAV0010" runat="server"></title>
b) define the field as GenericControl:
protected System.Web.UI.HtmlControls.HtmlGenericControl titAV0010;
c) change modifying the innerText property:
titAV0010.InnerText = rm.GetString("AV0010.Title");
This works fine, but the pitty is that from time to time VS.NET just removes the runalt="server" attribute from the <title> tag - it looks like a bug of the Designer.
Is there a workaround to this ?
a) change the HTML, e.g.:
<title id="titAV0010" runat="server"></title>
b) define the field as GenericControl:
protected System.Web.UI.HtmlControls.HtmlGenericControl titAV0010;
c) change modifying the innerText property:
titAV0010.InnerText = rm.GetString("AV0010.Title");
This works fine, but the pitty is that from time to time VS.NET just removes the runalt="server" attribute from the <title> tag - it looks like a bug of the Designer.
Is there a workaround to this ?