Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > User Control not showing font and color

Thread Tools

User Control not showing font and color

Robert Sheppard
Posts: n/a
I have a user control that dynamically creates a table. The header row has
bold text and gray background. The other rows have a smaller font and no
bold or background color. Pretty simple.

This user control is used to display a result set from my database. I call
it in one of two ways.

1. Either I have a button on the page that contains the UserControl that
initiates the results
2. Or I want the results to be presented when the page that contains the
UserControl is loaded.

The first method works great. I have a button on the main page that calls my
UserControl.ExecuteTable() function and the table displays just as I want

If I do the same thing in the Page_Load of the page I get the correct table
but ALL of the nice attributes for the table (ie bold, font size, background
color) are all gone. Makes my table look terrible.

Am I missing something? Or do I have to do this in a different way?

Reply With Quote

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
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM
Using <asp:label font-size=16px...> ist not showing size in FireFox Browser Andreas Klemt ASP .Net 6 11-28-2004 09:21 PM
physical font specified but true type font file not available Michael Glavitsch Java 1 07-15-2003 07:09 PM