M
Max Metral
Hi. I want to do two simple things. First, have a title attribute that can
be set from code. Second, to have the content attribute of a meta tag also
modified from code. In summary, the trick is that I do NOT want ASP.Net
putting it's bloated ID attributes in the tags because my pages will be
bigger and every byte counts.
So if I do:
<title runat="server" id="foo">Some Default Title</title>
the output ID sticks around and gets expanded to something much longer based
on class name, etc, which I don't want.
Annoying, but not the end of the world, I can just do:
<title><asp:literal runat="server" id="foo">Some Default
Title</asp:literal></title>
However, now I'm not sure how to handle the meta tag like this, since I
can't do
<meta content="<asp:literal...etc
Thoughts?
Thanks!
--Max
be set from code. Second, to have the content attribute of a meta tag also
modified from code. In summary, the trick is that I do NOT want ASP.Net
putting it's bloated ID attributes in the tags because my pages will be
bigger and every byte counts.
So if I do:
<title runat="server" id="foo">Some Default Title</title>
the output ID sticks around and gets expanded to something much longer based
on class name, etc, which I don't want.
Annoying, but not the end of the world, I can just do:
<title><asp:literal runat="server" id="foo">Some Default
Title</asp:literal></title>
However, now I'm not sure how to handle the meta tag like this, since I
can't do
<meta content="<asp:literal...etc
Thoughts?
Thanks!
--Max