473,804 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help making css styles work

My ASP.NET 2.0 application has a User Control that contains a DataList that
is unable to get style information from a style located in a css file in the
themes folder. The user control CssClass and the DataList ItemStyle CssClass
properties are both set to a valid name of a style in a stylesheet located
in a subfolder of the App_Themes folder. The Web.config file contains a
<pages theme property that references the name of the themes folder. Please
take a look at the source code below and let me know if you see anything
obviously wrong.

Thanks,

Keith
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Welcome to Build Task Manager
</title><link href="App_Theme s/BTMDefault/BTMDefault.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjgPZBYCZg9 kFgICAw9kFgICAw 9kFgJmDzwrAAkBA A8WBB4IRGF0YUtl eXMWAB4LXyFJdGV tQ291bnQCBGQWCA IBD2QWAgIBDw8WA h4EVGV4dAUJUmVt aW5kZXIxZGQCAg9 kFgICAQ8PFgIfAg UJUmVtaW5kZXIyZ GQCAw9kFgICAQ8P FgIfAgUJUmVtaW5 kZXIzZGQCBA9kFg ICAQ8PFgIfAgUJU mVtaW5kZXI0ZGRk Pm7a8PKDeoSgdqY mo9uV4krJkaA="
/>
</div>

<table cellspacing="0" cellpadding="0" width="770" border="1">
<tr>
<td width="100" valign="top">
List of Departments
<br />
List of Categories
<br />
</td>
<td valign="top">
&nbsp;
<p align="left">
<a href="Default.a spx">
<img src="Images/BTMLogo.gif" border="0" />
</a>
</p>

<table id="ctl00_Remin ders1_list"
class="Reminder ListContent" cellspacing="0" border="0"
style="width:67 0px;border-collapse:collap se;">
<tr>
<td class="Reminder ListHead">
Reminders
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 1_HyperLink1">R eminder1</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 2_HyperLink1">R eminder2</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 3_HyperLink1">R eminder3</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 4_HyperLink1">R eminder4</a>
</td>
</tr>
</table>

</td>
</tr>
</table>
</form>
</body>
</html>
Mar 14 '06 #1
1 1214
I found the problem... I had forgotten to precede the style name with a
period. in the style sheet.

Thanks,

Keith

"keithb" <kb******@dslex treme.com> wrote in message
news:Og******** *****@TK2MSFTNG P14.phx.gbl...
My ASP.NET 2.0 application has a User Control that contains a DataList
that is unable to get style information from a style located in a css file
in the themes folder. The user control CssClass and the DataList ItemStyle
CssClass properties are both set to a valid name of a style in a
stylesheet located in a subfolder of the App_Themes folder. The Web.config
file contains a <pages theme property that references the name of the
themes folder. Please take a look at the source code below and let me know
if you see anything obviously wrong.

Thanks,

Keith
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Welcome to Build Task Manager
</title><link href="App_Theme s/BTMDefault/BTMDefault.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjgPZBYCZg9 kFgICAw9kFgICAw 9kFgJmDzwrAAkBA A8WBB4IRGF0YUtl eXMWAB4LXyFJdGV tQ291bnQCBGQWCA IBD2QWAgIBDw8WA h4EVGV4dAUJUmVt aW5kZXIxZGQCAg9 kFgICAQ8PFgIfAg UJUmVtaW5kZXIyZ GQCAw9kFgICAQ8P FgIfAgUJUmVtaW5 kZXIzZGQCBA9kFg ICAQ8PFgIfAgUJU mVtaW5kZXI0ZGRk Pm7a8PKDeoSgdqY mo9uV4krJkaA="
/>
</div>

<table cellspacing="0" cellpadding="0" width="770" border="1">
<tr>
<td width="100" valign="top">
List of Departments
<br />
List of Categories
<br />
</td>
<td valign="top">
&nbsp;
<p align="left">
<a href="Default.a spx">
<img src="Images/BTMLogo.gif" border="0" />
</a>
</p>

<table id="ctl00_Remin ders1_list"
class="Reminder ListContent" cellspacing="0" border="0"
style="width:67 0px;border-collapse:collap se;">
<tr>
<td class="Reminder ListHead">
Reminders
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 1_HyperLink1">R eminder1</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 2_HyperLink1">R eminder2</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 3_HyperLink1">R eminder3</a>
</td>
</tr><tr>
<td class="Reminder ListContent">
<a id="ctl00_Remin ders1_list_ctl0 4_HyperLink1">R eminder4</a>
</td>
</tr>
</table>

</td>
</tr>
</table>
</form>
</body>
</html>

Mar 15 '06 #2

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

Similar topics

7
6848
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through Google search. So here is my problem: I want to use CSS to apply images as bullet styles. However, I want to be able to apply VARIOUS, MULTIPLE styles in the same document. For example, let's assume I have a set of categorized hyperlinks on a...
10
14377
by: Robert Jacobson | last post by:
Hi, I'm develing a COM add-in for Microsoft Word XP that displays a form. I'd like to have the form display using the Windows XP theme. However, neither using a manifest nor calling Application.EnableVisualStyles does the trick. (EnableVisualStyles works but massive instability, probably because the system is trying to theme the Word application itself.) I'm now trying to selectively enable the themes for just my form, or just...
2
1792
by: Richard | last post by:
I've been having alot of problems with asp.net 2.0's style sheet. When I apply a style sheet to a webform in the head tag (<link href="Site5.css" rel ="stylesheet" type ="text/css" runat="server" />), the webform does reflect the styles in design mode, but not when I run the project. Sometimes it does, sometimes it doesn't. Very frustrating. Right now I'm looking at my webform in design mode, it has the look of the styles in my .css. But...
22
9264
by: SQACSharp | last post by:
I'm trying to get the control name of an editbox in another window. The following code set the value "MyPassword" in the password EditBox but it fail to return the control name of the EditBox. I'm sure the problem is the way i'm using the sendmessage API, the return string and the lParam return 0....is anybody have a clue? any sendmessage api expert here? public static extern Int32 FindWindow(String lpClassName,String
0
5578
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
12
3021
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed the instructions and couldnt get the correct results. heres the code stuff... temperature=input("what is the temperature of the spam?") if temperature>50: print "the salad is properly cooked." else:
11
3390
by: Peted | last post by:
Im using c# 2005 express edition Ive pretty much finished an winforms application and i need to significantly improve the visual appeal of the interface. Im totaly stuck on this and cant seem to work out how to start on a solution. I have of course used a varienty of componets, mostly radio buttons with "button" appearence.
1
5619
by: erictomlinson | last post by:
I'm dying here trying to figure this out for days. Here's the scenario: 1) External script.as file dynamically imported to loader.swf file that creates a textfield (createTextField) 2) Content for the text field should be provided by an XML file 3) Content styled by external css file 4) Fonts need to be embedded so as to apply anti-alias
3
1097
by: Sean DiZazzo | last post by:
Hi group, I'm wrapping up a command line util that returns xml in Python. The util is flaky, and gives me back poorly formed xml with different problems in different cases. Anyway I'm making progress. I'm not very good at regular expressions though and was wondering if someone could help with initially splitting the tags from the stdout returned from the util. I have the following example string, and am simply trying to split it
1
2078
by: cbradio | last post by:
thescripts gurus, I would like to know if I could get some help with making elements of my layout expand (liquid) to the size of their containers, but also allow for some predefined, static margin/spacing. The layout is table-based, only because it needs to be very modular (going into more of an app than a website, and being reused) and needs to accommodate content of various sizes. Although I suppose i could mimic this with min-height...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10352
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.