CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 6/25/2007 11:26:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 46 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
rchua72
Asp.Net User
Problem with ImageURL defined in a skin file6/25/2007 11:26:55 PM

0

I have defined a skin for the image control in a skin file (Airloom.skin). 

<%-- Company Logo--%>
<asp:Image SkinID="skCompanyLogo Font-Names="Verdana" runat="server" ImageUrl="Images/Airloom_72dpi.jpg"  />

In the aspx page, the image control is defined as follows:

<asp:Image ID="imgSecurityMailLogo" runat="server" SkinID="skCompanyLogo"/>

The image is stored in the following directory:

App_Themes/Airloom/Images/Airloom_72dpi.jpg

The skin file is stored in the following directory:

App_Themes/Airloom/Airloom.skin

The theme is defined in the web.config file as follows:

<pages theme="Airloom" enableEventValidation="false" viewStateEncryptionMode="Never"/>
           
Now when I run the application, the colors for the application changes as defined in the "Airloom" theme but the image does not change.  In fact the image is not shown even though I have defined a skin for the image control.

I have tried changing the ImageURL in the skin file to "~/App_Themes/Airloom/Images/Airloom_72dpi.jpg" but that also did not work.  Is there something that I'm doing wrong?  Please help?

Amanda Wang - M
Asp.Net User
Re: Problem with ImageURL defined in a skin file6/27/2007 6:27:30 AM

0

Hi,

It is so strange as you descriped, I have a test with "~/App_Themes/Airloom/Images/Airloom_72dpi.jpg" and Images/Airloom_72dpi.jpg, they all works fine.

During checking the code that you provide, i find you missed a sime-quotation mark in your skin file.

rchua72:

<%-- Company Logo--%>
<asp:Image SkinID="skCompanyLogo Font-Names="Verdana" runat="server" ImageUrl="Images/Airloom_72dpi.jpg"  />

You should correct it  like below:

<asp:Image SkinID="skCompanyLogo"   Font-Names="Verdana" runat="server" ImageUrl="Images/Airloom_72dpi.jpg"  />

 I also test like this, SkinID="skCompanyLogo , it could not work because the skinid is skCompanyLogo Font-Names=, not skCompanyLogo

but when i use SkinID="skCompanyLogo" , it works fine.

 

Hope it helps. 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
rchua72
Asp.Net User
Re: Problem with ImageURL defined in a skin file7/4/2007 4:38:11 AM

0

Oops, my bad....

 I did not notice that missing double quote in the skinID..Thanks for pointing that to me...It works now.

Thanks

Romeo

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
PROFESSIONAL ASP.NET 3.5 IN C# AND VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1728, Published: 2008
Expert C# 2008 Business Objects Authors: Rockford Lhotka, Pages: 750, Published: 2008
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, Pages: 760, Published: 2006

Web:
Problem with ImageURL defined in a skin file - ASP.NET Forums In fact the image is not shown even though I have defined a skin for the image control. I have tried changing the ImageURL in the skin file ...
Visual Studio .NET Dynamically edit skin file I have problem with change ImagePath in skin files ... ImageUrl="IMD/Buttons/ SomeButton.jpg" Width="100px" Height="20px"/> ...
ASP.NET Themes and Skins Overview Themes are defined in special directories in your Web site or on your Web server . ... You create .skin files in the Theme folder. A .skin file can contain one or ... ...
Theme + asp:menu + ImageUrl = Help In my menu.xml file I have my nodes defined as follows: ... My problem is that I can't seem to get the ImageUrl to funcion with the themes. ... in the Theme file (skin file) which is compiled into certain control at ...
Weird error - Literal content is not allowed within a 'skin file' and have run into a weird problem trying to add a skin file. ... Literal content ('
Problem with CSS Background-Image in Skins - ng.asp-net-forum ... background-image url problems > DotNetNuke Forum, DNN Creative . ... If your skin uses a background image for the header, your skin file will contain . ...
Getting all of the possible attributes for a webcontrol in a skin ... Tutorial 4: Displaying Data With the ObjectDataSource ... using cascading style sheets defined in an external file whenever possible. ... A Skin is a file ...
Get Current Theme Directory? - ng.asp-net-forum ... Create a skin file for the image control and define the imageURL property in the skin and ... For example, part of your page theme might include a skin for a TreeView control. .... (defined in includes/theme.inc) to get a list of available themes, ... problem on clicking next button in wizardcontrol ...
Skin controls in .net 2.0 - ng.asp-net-forum ... Create a skin file for the image control and define the imageURL property .... NET 2.0 Website Programming: Problem-design-solution Authors: ... Videos: ...
Close Button and Themes - ng.asp-net-forum ... Problem: I want to use Themes on this web app. I can't assign the image an entry in the skin file I get a message about Literal Content - this ... asp:Image runat="server" SkinID="logoImage" ImageUrl="Images/logo.gif" /> ...












stubborn sitemapnode refuses to update

trying to get the user.identity.name in the master page code

master page - detail page relationship - capturing events

theming webparts

popup window using .net menu control

virtualpathprovider question

linkedstylesheets missing from ipageheader in beta 2.

weird error--code 0, expected ')'

setting application-wide master page

how to make the menu item fully clickable (not just the text)

treeview with checkboxes not holding their checked state

help...how to deal with link.href in master page with resource file

master page and content place refresh

does multiview support client side view switch?

loss of menu control on site

manually loading an xml file and binding it to an asp:menu

another menu/sitemap question

problems with sitemap

how to display root menu items in 2 rows using asp.net menu control?

sitemap problem

css styles and skins

best way to handle banner on master page

how to implement a particular type of menu

knowing which page you're on with a wizard control

.htm docs and “contentplaceholder”

menu problem

masterpagefile="~/masters/ie7ff2.master"

theme not applying correctly

treeview question

masterpagefile in web.config

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT