Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Skinning dynamically created controls
posted

have a couple of specialised ultra web grids and a skin file. control is created dynamically. rather than having separate entries in the skin file for each specialised grid just want a generic one. Can get the skin settings to work only if i specify the specialised name. Any ideas?

In my skin file I want to use:
<cc1:BaseGrid Runat="server"> ...

instead of:
<cc1:SpecialisedGrid Runat="server"> ...

  • 135
    Suggested Answer
    posted

    As far as I know, this is an ASP.NET behavior issue, and you might be out of luck, but hopefully I'm wrong about the latter.

    The way I usually did this was set the properties in the base control code (in the appropriate lifecycle event), not the skin file.