You could set EnableTheming="False" to the control definition, when skin
wouldn't be applied at all.
Second option is to specify the theme of the page with StyleSheetTheme
attribute instead of Theme attribute (in @Page directive). When theme is set
with StyleSheetTheme, indiviual control's properties would actually override
the skin setting given in the theme, whereas with Theme they aren't
overridable.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke http://teemukeiski.net
"lionel luo" <li*******@gmail.comwrote in message
news:uJ**************@TK2MSFTNGP02.phx.gbl...
Thansk Alexey,
If I don't want to use skin's image, hwo to replace it?
private Image __BuildControlImageLogo ()
{
Image image1 = new Image ();
base.ImageLogo = image1;
image1.ImageUrl = "http://us.i1.yimg.com/us.yimg.com/i/yahoo.gif";
return image1;
}
I try, but didn't display the iamge. hwo to do that?
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@e51g2000hsg.googlegr oups.com...
>On May 12, 3:31 pm, "lionel luo" <lionel...@gmail.comwrote:
how to find where is the imagelogo? Please advice.Thansk.
Code:----------------------------------------------------
private Image __BuildControlImageLogo ()
{
Image image1 = new Image ();
base.ImageLogo = image1;
image1.SkinID = "ImageLogo";
image1.ApplyStyleSheetSkin (this.Page);
image1.BorderWidth = new Unit (0D, UnitType.Pixel);
image1.ID = "ImageLogo";
return image1;
}
Can you explain this a bit more, please?