Change css element with C#

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I need to change the css element with C# on the server side, how do I do
that?

I need to change the following:

.reportviewercss
{
display: inline;
}

to

.reportviewercss
{
display: none;
}
 
Hi Peter,

Put the style in your HTML, that will override the stylesheet.

With kind regards,

Matthijs Krempel
 
Thank You

I always try to go with standards first and I already know how to change the
css class so I will that route.



Eliyahu Goldin said:
Much more standard solution would be to change the css class for the
elements from reportviewercss to reportviewerhiddencss.

.reportviewerhiddencss
{
display: none;
}


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Peter said:
I need to change the css element with C# on the server side, how do I do
that?

I need to change the following:

.reportviewercss
{
display: inline;
}

to

.reportviewercss
{
display: none;
}
 
re:
!> I always try to go with standards first

You're going to love IE 8.0, then.

Microsoft is planning on releasing IE8 in full standards mode.
( It was about time, too...)

Here's the link to the IE 8.0 beta :

https://www.microsoft.com/windows/products/winfamily/ie/ie8/default.mspx




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
Peter said:
Thank You

I always try to go with standards first and I already know how to change the css class so I will that route.



Eliyahu Goldin said:
Much more standard solution would be to change the css class for the elements from reportviewercss to
reportviewerhiddencss.

.reportviewerhiddencss
{
display: none;
}


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Peter said:
I need to change the css element with C# on the server side, how do I do that?

I need to change the following:

.reportviewercss
{
display: inline;
}

to

.reportviewercss
{
display: none;
}
 
Back
Top