Skin Custom Control
Hi All,
I am creating a custom control(just to try) by simply deriving a class from a standard webcontrol as following:
public class MyButton : Button
{
}
But skin is not being applied to this button. I am manually setting the skinID in PreInit:
protected void Page_PreInit(object Sender, EventArgs e)
{
MyButton mb = new MyButton();
mb.Text = "This is a custom button";
mb.SkinID = "Button_Default";
this.form1.Controls.Add(mb);
btnPostBack.SkinID = "Button_Default";
btnPostBack is working fine with the Skin but mb is not displaying the skin.
- Vishu
__________________
- Vishu
|