Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

How to extract the file name associated whith a skin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WT - 06 Sep 2007 10:46 GMT
Hello,

I am using themes and have seral themes for my site, user can choose it from
a list then it is applyed to all pages by program.
Problem is that some compoinent we use does not support themes and we must
provide it with a file name.
Is it possible , knowing the skinid to extract the file name associated  in
the current theme ?

Thanks in advance forhelp.

CS
Walter Wang [MSFT] - 07 Sep 2007 08:19 GMT
Hi CS,

I'm not sure if I've fully understood your question, would you please give
some specific example code to show your objective and the issue you're
facing? Thanks.

For a given theme name, you can assume all its files are in
~/App_Themes/<ThemeName>/.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
WT - 07 Sep 2007 12:09 GMT
Hi Walter,

Thanks for your attention.
Problem I am facing is that my program knows only the current Theme and the
skinID used in a declaration like

<rad:PanelBarItem SkinID="MyPanelSkin_1" ImageUrl="Img/MyImage_1.gif" />
<rad:PanelBarItem SkinID="MyPanelSkin_2" ImageUrl="Img/MyImage_2.gif" />

I am searching some API that would avoid me the task to open the skin file
and parse everything to extract the ImageUrl associated to the
MyPanelSkin_x.

CS

> Hi CS,
>
[quoted text clipped - 16 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Walter Wang [MSFT] - 10 Sep 2007 13:34 GMT
Hi CS,

Thanks for your update.

I don't know such API or method exists to get the skin file information so
far, but I will consult in our internal discussion list to see if anyone
knows it (if it does exist).

I'll keep you posted.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
WT - 10 Sep 2007 16:26 GMT
Thanks
> Hi CS,
>
[quoted text clipped - 17 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Walter Wang [MSFT] - 12 Sep 2007 13:34 GMT
Hi CS,

Thanks for your waiting.

I've consulted your question, unfortunately there's no API available to do
that. The .skin file has the same syntax as the ASPX file, they should be
valid xml document. Therefore I think we can use XmlDocument to load and
parse them.

Please let me know if you need help on this. Thanks.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.