Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > set <head> from ascx

Thread Tools

set <head> from ascx

Posts: n/a
Hi have an aspx which dynamically includes some ascx's.

One of the ascx's needs to set an element in the <head> of the page -
is this possible from the code-behind of an ascx?

For example, I have an ascx which can generate an RSS-feed, and this
ascx is sometimes included on the aspx and sometimes it is not.

If it is included on the aspx, then I would like to set the element in
the <head> of the page which allows the browser to know to display its
"rss image button" (something like <link rel="alternate"
type="application/rss+xml" href="http://www.myplace/myrss.xml"
title="RSS feed">).

Can I do that from my ascx?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TabStrip/Multipage using UserControl (.ascx) contained within a UserControl(.ascx) ASP .Net Web Controls 2 05-03-2005 05:01 PM
Multiple *.ascx files with a single *.ascx.cs in VS.NET 2003 Holger (David) Wagner ASP .Net 2 07-03-2004 09:23 AM
datasource of child .ascx not visible to parent .ascx Joe ASP .Net Web Controls 1 02-16-2004 07:27 AM
can a dg be added to an ascx? ascx call a ws? Jason Shohet ASP .Net 1 11-10-2003 07:08 PM
[ASCX] Add an ascx in a webcontrol... Quentin ASP .Net 1 07-29-2003 07:37 PM