Link to home
Start Free TrialLog in
Avatar of priyanka_kothari
priyanka_kothariFlag for India

asked on

Dynamically applying skins to user controls in asp.net 2.0

How to change the skin of controls in my user control dynamically?
Avatar of tetorvik
tetorvik
Flag of Finland image

you'll need to do it in Page_PreInit event like:
*.ascx.cs   
    void Page_PreInit(object sender, EventArgs e)
    {
        Calendar1.SkinID = "MySkin";
    } 

Open in new window

Avatar of priyanka_kothari

ASKER

I have done the same but its not working. I am using login control and want to change skin of login controls' controls
ASKER CERTIFIED SOLUTION
Avatar of tetorvik
tetorvik
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial