Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2005, 11:28 AM
Authorized User
 
Join Date: Jan 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem applying a style to a webcontrol

hi everybody, i get no results applying a style defined in a css to a label.

i have this in the head of the page:

<LINK href="\\CSS\\Rest.css" type="text/css" rel="Stylesheet">

and this inside the definition for the label:

<asp:label id=Label2 runat="server" Height="138px" Width="163px" BackColor="Transparent" Text='<%# DataBinder.Eval(dataSetRest1, "Tables[Restaurantes].DefaultView.[0].oferta_especial") %>' CssClass="DisplayText"></asp:label>
 
Old March 10th, 2005, 12:39 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Check the path ="\\CSS\\Rest.css" is correct..

 
Old March 10th, 2005, 01:48 PM
Authorized User
 
Join Date: Jan 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes the path is correct, my aspx is on the root and the css file is located inside a folder on the root too (\CSS\Rest.css).
i tried
<LINK href="..\\CSS\\Rest.css" type="text/css" rel="Stylesheet">

and it does not work...
 
Old March 10th, 2005, 02:10 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Then use <LINK href="CSS/Rest.css" type="text/css" rel="Stylesheet">
This will work fine.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Recursive applying template ismomo XSLT 3 December 29th, 2007 11:35 PM
Applying style to CDATA content pan69 XSLT 6 December 14th, 2007 07:10 AM
Problem getting value out of a custom webcontrol SV ASP.NET 2.0 Basics 0 November 17th, 2007 03:55 PM
problem with UI Webcontrol-treeview hawing General .NET 1 December 30th, 2004 11:19 AM
Treeview Webcontrol problem Victor ADO.NET 2 September 9th, 2004 10:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.