Ask a Question related to ASP.NET Building Controls, Design and Development.
-
markbaer #1
Modify Head Tag from Custom Control.
Can I or how do I modify the Head Tag using a Custom Control. I've tried
adding a Literal Control and setting it's "Text" property. I get access to
it by saying:
Literal myControl = (Literal)this.Page.FindControl("RSSLinks");
myControl.Text = rssLinksVariable;
I don't get any error messages, but nothing shows up in the Head Tag.
I've also tried putting runat="server" in the "Head" tag. Said it wouldn't
let me overwrite/add to the contents.
Basically, I am trying to Dynamically write RSS Link Tags for different
pages in the Head Tag when it loads.
Any better ideas?
Thanks
Mark
markbaer Guest
-
can user modify editable head region?
My client would like to be able to maintain his own keyword meta tag in the editable HEAD region but we can't seem to find a place to put the... -
[ Custom Controls ] Insertar tags dentro de <HEAD>
Hola amigos: Tienen idea de cómo se hace para insertar un <LINK...> y un <script...> dentro del <HEAD> desde un "Custom Control". En realidad el... -
control to add <LINK> inside <HEAD>
Hi all, I'm building a custom control, which has a separate .css file with its stylesheet. I need to link to the stylesheet inside the page,... -
ControlDesigner not invoked on custom control when control is rendered within another custom control
I have a custom control that has a simple designer (derived from System.Web.UI.Design.ControlDesigner) associated with it (using the... -
get head by tagname (from server control)
my server control generates part of page from codebehind. I get other part from different source. how can i get <head></head> (written inline on...



Reply With Quote

