Change Web Page background color programmatically

Joined
Jun 28, 2006
Messages
5
Reaction score
0
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.
 
Joined
Jun 28, 2006
Messages
5
Reaction score
0
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"
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,333
Messages
2,571,380
Members
48,787
Latest member
Aywan

Latest Threads

Top