Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Change css element with C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 09 Apr 2008 14:42 GMT
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;
   }
Matthijs Krempel - 09 Apr 2008 14:50 GMT
Hi Peter,

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

With kind regards,

Matthijs Krempel

> I need to change the css element with C# on the server side, how do I do
> that?
[quoted text clipped - 12 lines]
>         display: none;
>    }
Eliyahu Goldin - 09 Apr 2008 14:51 GMT
Much more standard solution would be to change the css class for the
elements from reportviewercss to reportviewerhiddencss.

.reportviewerhiddencss
{
        display: none;
}

Signature

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

>I need to change the css element with C# on the server side, how do I do
>that?
[quoted text clipped - 12 lines]
>         display: none;
>    }
Peter - 09 Apr 2008 19:48 GMT
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.

> Much more standard solution would be to change the css class for the
> elements from reportviewercss to reportviewerhiddencss.
[quoted text clipped - 20 lines]
>>         display: none;
>>    }
Juan T. Llibre - 09 Apr 2008 21:48 GMT
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/
======================================
> Thank You
>
[quoted text clipped - 23 lines]
>>>         display: none;
>>>    }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.