Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help making css styles work

Reply
Thread Tools

Help making css styles work

 
 
keithb
Guest
Posts: n/a
 
      03-14-2006
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>


 
Reply With Quote
 
 
 
 
keithb
Guest
Posts: n/a
 
      03-15-2006
I found the problem... I had forgotten to precede the style name with a
period. in the style sheet.

Thanks,

Keith

"keithb" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get CSS link styles to work in a table Marc HTML 3 01-18-2005 10:11 PM
CSS - Styles =?Utf-8?B?R3VlbnRoZXIgU2NoYWJ1cw==?= ASP .Net 2 10-23-2004 12:24 PM
Diff CSS styles for diff INPUT TYPE='s? A Traveler ASP .Net 6 08-31-2004 09:17 PM
Re: Server.Transfer in HttpHandler causes CSS styles to be ignored Jeff Marken ASP .Net 1 10-16-2003 05:14 AM
Re: Server.Transfer in HttpHandler causes CSS styles to be ignored Jerry III ASP .Net 0 10-15-2003 07:48 AM



Advertisments