User Control not showing font and color

Discussion in 'ASP .Net Web Controls' started by Robert Sheppard, Oct 31, 2005.

  1. 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
    it.

    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?
     
    Robert Sheppard, Oct 31, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Klemt
    Replies:
    6
    Views:
    11,226
    Peter Theill
    Nov 28, 2004
  2. Michael Glavitsch
    Replies:
    1
    Views:
    785
    Roedy Green
    Jul 15, 2003
  3. mttc
    Replies:
    2
    Views:
    2,425
    Roedy Green
    Jul 3, 2009
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    447
    Kamaljeet Saini
    Feb 13, 2009
  5. sed_y
    Replies:
    0
    Views:
    1,037
    sed_y
    Feb 15, 2012
Loading...

Share This Page