CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/12/2005 7:40:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 69 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
wmatthiesen
Asp.Net User
Programatically identifying Themes in the app_themes directory10/12/2005 7:40:37 PM

0/0

I would like to by able to provide a list of themes defines in the app_themes directory, and allow a user to choose from that list.  Is there a supported way to do this ?
Dave Sussman
Asp.Net User
Re: Programatically identifying Themes in the app_themes directory10/13/2005 8:31:54 AM

0/0

I've used this code in the past:

Sub GetThemeNames(ByVal themePath As String)

    If Not Directory.Exists(themePath) Then
        Return
    End If

    Dim root As New DirectoryInfo(themePath)
    Dim dirs() As DirectoryInfo = root.GetDirectories()
    Dim dir As DirectoryInfo
    Dim pathName As String

    For Each dir In dirs
        pathName =
 Path.GetFileName(dir.Name))
        
        ' do something with pathName
    Next
End Sub


Call it with:

GetThemeNames(Server.MapPath("App_Themes"))

or

Dim v As String = GetSystemVersion().Replace("v", "").Replace(".", "_")
GetThemeNames("d:\inetpub\wwwroot\aspnet_client\system_web\" & v & "\Themes\")


The first uses the local themes, the second global themes (if you have any)

Dave

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Master Pages, Themes and Navigation Controls - ASP.NET Forums Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages by Jacob J. Sanford ... Programatically identifying Themes in the app_themes directory ...
15 Seconds : New Files and Folders in ASP.NET 2.0 Any subfolders of the App_Themes folder act as themes for a site. .... You can also programmatically access these resources from within your code. ...
Feature Changes in ASP.NET 2.0 You can define skins and deploy them in subdirectories stemming from the App_Themes directory. Each subdirectory constitutes a theme, which can contain ...
Inside Microsoft: Styling a Site using Themes Any subfolders of the app_Themes folder act as themes for a site. ... You can also access the Head control programmatically in your code, since you can add ...
Microsoft PowerPoint - CS_02_UIElements.ppt You can set the master page programmatically, ... What is a theme. A directory under App_Themes ... Uniquely identify each control with 'SkinID' ...
ASP.NET Fundamentals What Is a Theme? A directory under App_Themes. Contains one or more .skin files ... Changing Themes. You can programmatically change a theme ...
Creating Web Sites with ASP.NET 2.0 NET to identify individual browsers and determine their capabilities. App_Themes . Stores all of the specific themes and skins for the application. ...
Themes and Master Pages might have a FunkyTheme theme in the SuperCommerce\App_Themes\FunkyTheme folder. ... NET treats all the skin files in a theme directory as ...
ASP.NET 2.0 Web site Layout The content of application folders, except for the App_Themes folder, ... A. Place a theme in the AppThemes directory under the application root directory. ...
TheMSsForum.com >> Asp >> w3wp.exe process crashing. - The ... I have defined a new theme in the App_Themes folder, and all my pages use this theme. ..... I have not tried this programatically and would like to keep the ...




Search This Site:










nested wizard control: having sub-steps in a 2.0 wizard control

treeview not visible

positioning issues

need a sitemap link to open in a new window

using the dynamicitemtemplate

web.sitemap required by xmlsitemapprovider

accessing contnet page's control in the javascript code of master page

how can i apply custom images to my sitemap

asp:menu - arrow pushes centered menu text

menu in vs2005 express edition

masterpage problem.image in masterpage not shows in childpages

multiview and treeview -- can't find selectednode

is it possible to update the control at server-side ?

tree view sitemap nodes

how to make panel 'visible' programmatically using findcontrol

how to dynamically update and expand/focus a node in treeview asp.net 2.0 ?

css style to content placeholder on master page -- urgent

problem with themes and gridview

masterpage and stylesheets

working with asp:menu 2005. can u help me?

outcache problem about masterpage.master and google ad

building menu.navigateurl based on user selection

external stylesheet on a content page

need some help with menu

can't add master pages to my project!

treeview question

advanced menu creation

invalid theme or stylesheet theme value.

adding controls programatically to master pages

why the findcontrol doesn't find a control in page that have masterpage?

  Privacy | Contact Us
All Times Are GMT