473,387 Members | 1,859 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,387 software developers and data experts.

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.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Welcome to Build Task Manager
</title><link href="App_Themes/BTMDefault/BTMDefault.css" type="text/css"
rel="stylesheet" /></head>
<body>
<form name="aspnetForm" method="post" action="default.aspx"
id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTEwMDUyNjYzMjgPZBYCZg9kFgICAw9kFgICAw9kFgJ mDzwrAAkBAA8WBB4IRGF0YUtleXMWAB4LXyFJdGVtQ291bnQCB GQWCAIBD2QWAgIBDw8WAh4EVGV4dAUJUmVtaW5kZXIxZGQCAg9 kFgICAQ8PFgIfAgUJUmVtaW5kZXIyZGQCAw9kFgICAQ8PFgIfA gUJUmVtaW5kZXIzZGQCBA9kFgICAQ8PFgIfAgUJUmVtaW5kZXI 0ZGRkPm7a8PKDeoSgdqYmo9uV4krJkaA="
/>
</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.aspx">
<img src="Images/BTMLogo.gif" border="0" />
</a>
</p>

<table id="ctl00_Reminders1_list"
class="ReminderListContent" cellspacing="0" border="0"
style="width:670px;border-collapse:collapse;">
<tr>
<td class="ReminderListHead">
Reminders
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl01_HyperLink1">Remind er1</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl02_HyperLink1">Remind er2</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl03_HyperLink1">Remind er3</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl04_HyperLink1">Remind er4</a>
</td>
</tr>
</table>

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

Thanks,

Keith

"keithb" <kb******@dslextreme.com> wrote in message
news:Og*************@TK2MSFTNGP14.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.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Welcome to Build Task Manager
</title><link href="App_Themes/BTMDefault/BTMDefault.css" type="text/css"
rel="stylesheet" /></head>
<body>
<form name="aspnetForm" method="post" action="default.aspx"
id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwULLTEwMDUyNjYzMjgPZBYCZg9kFgICAw9kFgICAw9kFgJ mDzwrAAkBAA8WBB4IRGF0YUtleXMWAB4LXyFJdGVtQ291bnQCB GQWCAIBD2QWAgIBDw8WAh4EVGV4dAUJUmVtaW5kZXIxZGQCAg9 kFgICAQ8PFgIfAgUJUmVtaW5kZXIyZGQCAw9kFgICAQ8PFgIfA gUJUmVtaW5kZXIzZGQCBA9kFgICAQ8PFgIfAgUJUmVtaW5kZXI 0ZGRkPm7a8PKDeoSgdqYmo9uV4krJkaA="
/>
</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.aspx">
<img src="Images/BTMLogo.gif" border="0" />
</a>
</p>

<table id="ctl00_Reminders1_list"
class="ReminderListContent" cellspacing="0" border="0"
style="width:670px;border-collapse:collapse;">
<tr>
<td class="ReminderListHead">
Reminders
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl01_HyperLink1">Remind er1</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl02_HyperLink1">Remind er2</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl03_HyperLink1">Remind er3</a>
</td>
</tr><tr>
<td class="ReminderListContent">
<a id="ctl00_Reminders1_list_ctl04_HyperLink1">Remind er4</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
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...
10
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...
2
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"...
22
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. ...
0
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...
12
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...
11
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...
1
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)...
3
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.