Hello NG,
I'm writing a control that needs to put a clientside javascript between the
<HEAD> Tags of a webpage where it is placed on. I've seen from other threads
in this NG, that one solution is to assign a runat="server" and an
id="myheader" attribute to the HEAD-Tag. On the code behind I've defined a
variable Protected myHeader As System.Web.UI.HtmlControls.HtmlGenericControl
to access the HEAD tag.
My Problem is, that everytime when I change between design and HTML view,
visual studio is removing the runat="server attribute". Has anyone an idea
why this is happening?
Thanks and Regards
MBO