One idea would be to simply access the Page.Header.Controls
collection
directly and add and/or remove HtmlLink controls from that
collection as you
see fit.
-Brock
http://staff.develop.
com/ballen
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for
> the Web [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of
> Rory Primrose
> Sent: Sunday, May 07, 2006 9:38 PM
> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> Subject: [DOTNET-WEB] Using VirtualPathProvider and
> VirtualDirectory to determine theme files to return
>
> Hi guys,
>
> I am wanting to control the files that are returned
from an App_Themes
> folder. There are two additions that I want to make to
the default
> processing of these theme folders.
>
> Firstly, I want the ability to specify common files.
For example, I
> have several themes, but the skin file used across all
of these themes
> has the same contents. To avoid duplication, I would
like to use
> VirtualDirectory.GetFiles to return files for the
selected theme, and
> also the files found in another folder (such as
App_Themes/Common).
>
> Secondly, I want the ability to ignore certain files in
a theme.
> Within each theme, I have files for different
accessibility styles
> (high-contrast, low-contrast and text-only). I wanted
to have a config
> file in the theme folder that determines which files
would be returned
> in VirtualDirect.GetFiles for that theme based on the
accessibility
> level required.
>
> I have been playing with VirtualPathProviders, but I
haven't been able
> to get the VirtualPathProvider.GetDirectory to get
called for the
> currently selected theme folder.
>
> Any ideas?
>
> Cheers,
>
> Rory
>
> --
> http://www.higherten
dencies.com/
>
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|