stylesheets in code-behind which attribute strings

  • Thread starter Thread starter pieroM
  • Start date Start date
P

pieroM

The WebControl class has a Style property

example:

Label1.Style["visibility"]=
((Label1.Style["visibility"]=="hidden")?"show":"hidden");

which strings such as "visibility" can I use ?

for example "bgcolor" or "background-color" ?

Any example around ?

Thanks
 
When you copy code from the help file you should at least
paste it into the editor and see for yourself.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
 
the documentation talks about a string such as "visibility",
but it doesn't say which other strings work fine,

this was the question.

however thanks !

clintonG said:
When you copy code from the help file you should at least
paste it into the editor and see for yourself.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/



pieroM said:
The WebControl class has a Style property

example:

Label1.Style["visibility"]=
((Label1.Style["visibility"]=="hidden")?"show":"hidden");

which strings such as "visibility" can I use ?

for example "bgcolor" or "background-color" ?

Any example around ?

Thanks
 
Back
Top