Change Web Page background color programmatically

Discussion in '.NET' started by VanReenenc, Sep 1, 2006.

  1. VanReenenc

    VanReenenc

    Joined:
    Jun 28, 2006
    Messages:
    5
    I have web page that I use for add/delete/modify records from a database. Depending on what the user desires on previous web page this particular web page allows users to add, modify, or delete the record from a database. Each has different directions and labels on buttons are change with in code.
    My users also want the background color for add web page to be one color, modify web page to be different color, and delete web page third color. In VB this was form.background color, but can not seem to find solution in MSDN for this one.
     
    VanReenenc, Sep 1, 2006
    #1
    1. Advertising

  2. VanReenenc

    VanReenenc

    Joined:
    Jun 28, 2006
    Messages:
    5
    Answer:
    Set ID in body of HTML to runat server followed by initial bgcolor
    Then in Public Class of webform
    Protected us id matches id in body of HTML as HTMLGenericControl.
    id.Attributes("bgColor")="color"
     
    VanReenenc, Sep 1, 2006
    #2
    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. Mike Silva
    Replies:
    18
    Views:
    639
    Toby Inkster
    Dec 19, 2006
  2. test9991014@yahoo.com

    Page background color won't change.

    test9991014@yahoo.com, Mar 19, 2008, in forum: HTML
    Replies:
    30
    Views:
    3,396
    Ben C
    Mar 22, 2008
  3. fig000
    Replies:
    0
    Views:
    4,555
    fig000
    Sep 6, 2004
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    427
    Kamaljeet Saini
    Feb 13, 2009
  5. laredotornado@zipmail.com
    Replies:
    1
    Views:
    272
    marss
    Feb 14, 2007
Loading...

Share This Page