Change css element with C#
Change css element with C#
am 09.04.2008 15:42:01 von 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;
}
Re: Change css element with C#
am 09.04.2008 15:50:07 von Matthijs Krempel
Hi Peter,
Put the style in your HTML, that will override the stylesheet.
With kind regards,
Matthijs Krempel
"Peter" schreef in bericht
news:Ocaj#dkmIHA.3780@TK2MSFTNGP06.phx.gbl...
> 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: Change css element with C#
am 09.04.2008 15:51:51 von Eliyahu Goldin
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" wrote in message
news:Ocaj%23dkmIHA.3780@TK2MSFTNGP06.phx.gbl...
>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: Change css element with C#
am 09.04.2008 20:48:10 von 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" wrote in
message news:uhLDUkkmIHA.5660@TK2MSFTNGP02.phx.gbl...
> 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" wrote in message
> news:Ocaj%23dkmIHA.3780@TK2MSFTNGP06.phx.gbl...
>>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: Change css element with C#
am 09.04.2008 22:48:27 von nomailreplies
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" wrote in message news:ehgBDJnmIHA.2504@TK2MSFTNGP05.phx.gbl...
> 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" wrote in message
> news:uhLDUkkmIHA.5660@TK2MSFTNGP02.phx.gbl...
>> 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" wrote in message news:Ocaj%23dkmIHA.3780@TK2MSFTNGP06.phx.gbl...
>>>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;
>>> }
>>>
>>>
>>>
>>
>>
>
>