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 / July 2007

Tip: Looking for answers? Try searching our database.

programatically reverse enginerring to a css attached into an aspx page, is posible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sergio E. - 25 Jul 2007 01:40 GMT
Hi, I'm thinking about a trouble exposed before about a gridview export into
an excel file, and in this moment I see that maybe gridview is correctly
generated and the cells doesn't have any information about color, font,
etc., because I'm using a css file...
so I'm wondering if it would be possible to make a reverse engineering to
the attached css file to obtain that properties, something like:

me.css(me.gridview1.rowstyle.cssclass).backcolor

the fact is that I can't find any property or event in  the "me" or "page"
objects that gives to me access to the css attached file...

does anybody knows how to do this things?
thanks in advance...
Signature

greetings
Sergio E.

Brandon Gano - 25 Jul 2007 04:28 GMT
It isn't possible to access the CSS properties on the server, because the
CSS isn't actually loaded and linked until it reaches the client.

You will need to manually apply styles and/or html attributes to your table
at design time and avoid using linked css files altogether.

> Hi, I'm thinking about a trouble exposed before about a gridview export
> into an excel file, and in this moment I see that maybe gridview is
[quoted text clipped - 10 lines]
> does anybody knows how to do this things?
> thanks in advance...
Sergio E. - 25 Jul 2007 04:45 GMT
thank you for your answer... i think i would happend in the way you describe
and your words confirm my suspects, thanks again.

Signature

Saludos,
Sergio E.
DCE2005 - 2*

> It isn't possible to access the CSS properties on the server, because the
> CSS isn't actually loaded and linked until it reaches the client.
[quoted text clipped - 16 lines]
>> does anybody knows how to do this things?
>> thanks in advance...

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.