Have you tried?
I know for sure that a custom server control can...
For example:
public class Head : LiteralControl
{
protected override void Render(HtmlTextWriter writer)
{
StringBuilder head = new StringBuilder();
head.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
head.Append(Utility.ApplicationPath);
head.Append("/styles.css\">");
head.Append(Environment.NewLine);
head.Append("<script language=\"javascript\" src=\"");
head.Append(Utility.ApplicationPath);
head.Append("/script.js\"></script>");
base.Text = head.ToString();
base.Render (writer);
}
}
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<th*****************@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Is it possible that my user control can add code to the HEAD of the
parent page that hosts the control?