473,320 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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...
--
greetings
Sergio E.

Jul 25 '07 #1
2 1182
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.
"Sergio E." <gruporemp[ARROBA]hotmail.comwrote in message
news:Os**************@TK2MSFTNGP04.phx.gbl...
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...
--
greetings
Sergio E.
Jul 25 '07 #2
thank you for your answer... i think i would happend in the way you describe
and your words confirm my suspects, thanks again.

--
Saludos,
Sergio E.
DCE2005 - 2*
"Brandon Gano" <bg***@inocompany.comescribió en el mensaje
news:47**********************************@microsof t.com...
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.
"Sergio E." <gruporemp[ARROBA]hotmail.comwrote in message
news:Os**************@TK2MSFTNGP04.phx.gbl...
>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).backcolo r

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...
--
greetings
Sergio E.

Jul 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi, heres a brief description of what I'm trying to do. I have a sql table named colors that looks like this: color_id color_name 1 blue 2 red 3......... and so...
4
by: Andrea Williams | last post by:
Does anyone know of some in depth documentation regarding how to add user controls programatically? I have a User Control, which has some basic html controls, and depending on the number selected...
1
by: mg | last post by:
I create a datagrid using the Web Forms Toolbo The dataadapter,dataset and databind() code runs in a button eventhandler The headertext is currently determined by the column names of my SQL...
2
by: Alex Nitulescu | last post by:
Hi. I have a web.config which says that all files with the "axd" extension should by a special handler. The handler writes some stats to the "axd" page. Public Class WhosOnHandler Implements...
4
by: Kevin Vogler | last post by:
I need to read the value of a hidden field on a remote HTML page and then use that value in a form submit on my local page. How can I read the hidden field programatically? Thanks in advance....
8
by: Rak | last post by:
I am looking for a way to programatically change the .net version of the virtual directory that I am creating within a aspx page. As part of creating a new customer in my asp.net 2 application, it...
0
by: mike | last post by:
Hi, When I programatically Bind a DataSource to DetailsView it does not fire "ModeChanged" event. This is first time i am trying to use ASP.NET DetailsView control. I have played with some of the...
1
by: Robert Burdick [eMVP] | last post by:
Hello All: I cannot seem to get a simple programmatic post to work. From one ASPX page, I want to generate HTML from another page. Thus, I programatically post to the second page and read the...
7
by: The Mad Ape | last post by:
Hi I have code to programatically create a label. It works but when I try to call a sub to create a tooltip it does not work. I do not get an error so have no idea what it wrong. Please review...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.