473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

image?

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;
}
May 12 '07 #1
4 1325
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?

May 12 '07 #2
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?

May 12 '07 #3
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?

May 12 '07 #4
On May 12, 4:05 pm, "lionel luo" <lionel...@gmail.comwrote:
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" ....

May 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Pierre Tremblay | last post by:
Hi! I am trying to display an image in my html document. The document contains the following line: <td class="Input"><img...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
8
by: Jef Driesen | last post by:
I'm implementing some image processing algorithms in C++. I created a class called 'image' (see declaration below), that will take care of the memory allocations and some basic (mathematical)...
6
by: QuasiChameleon | last post by:
Hi, I'm trying to create a grayscale image class that reads and writes grayscale Targa format. This works well with smaller images, but corrupts larger images and creates a "Segmentation fault...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
6
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
1
by: bharathv6 | last post by:
i need to do is modify the image in memory like resizing the image in memory etc ... with out saving it disk as i have to return back the image with out saving it disk PIL supports the use of...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.