Change css element with C#

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;
}
 
M

Matthijs Krempel

Hi Peter,

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

With kind regards,

Matthijs Krempel
 
P

Peter

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;
}
 
J

Juan T. Llibre

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





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;
}
 

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

Forum statistics

Threads
474,175
Messages
2,570,946
Members
47,495
Latest member
Jack William

Latest Threads

Top