views:

16

answers:

1

Hi, I implemented a lot of ASP.NET controls inheriting controls from existing control library. My problem is that I can't use existing library themes/ skin files for skinning my controls. Is there a way to use existing skin files in inherited controls? Changing parts or renaming skin files is not an option. It would help if I could read data from skin file and then apply it to control programatically. Is there some kind of API for reading skin files?

Thanks.

A: 

I have very simple suggestion for you...

When you define your skin for any control, you don't need to define ID of that skin, like you have define skin for button control, if you don't sepcify ID, then it will be implemented to all of your button, weather it is inherited or not.

<asp:Button runat="server" BackColor="Red" ForeColor="White" Font-Name="Arial" />
Muhammad Akhtar
Muhammad, thank you for your answer. But I don't define skins, I got them from component provider and I don't want to change them in any way since that would result in large amount of work (20+ controls x 6 themes) every time they release new version. Also, I don't work with skins directly I just apply a theme to whole application.
Filip