image?

  • Thread starter Thread starter lionel luo
  • Start date Start date
L

lionel luo

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;
}
 
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?
 
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
 
Thansk Alexey,
If I don't want to use skin's image, hwo to replace it?

Just a line of code :-)

((Image)Master.FindControl("ImageLogo")).ImageUrl = "http://
us.i1.yimg.com/us.yimg.com/i/yahoo.gif";

I suppose that the "ImageLogo" is an Image Control on the master page

<asp:Image ID="ImageLogo" ....
 
Back
Top