[thelist] ASP.NET: accessing the style of the page in server-sidecode?

Ken Schaefer ken at adOpenStatic.com
Tue Sep 30 02:43:12 CDT 2003


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Jason Handby" <jasonh at corestar.co.uk>
Subject: [thelist] ASP.NET: accessing the style of the page in
server-sidecode?


: Is there a way to access the style of a page from server-side
: code in ASP.NET? I've tried modifying my style tag:
:
: <style type="text/css" id="myStyle" runat="server"></style>
:
: in the forlorn hope that it might then show up in my code-behind,
: and that I might then be able to set its InnerHtml property from
: my code, but to no avail.
:
: Any ideas? Oh yeah, I'm writing for the .NET Framework 1.0
: in case that makes any difference.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Hmmm, what exactly do you want to change? The style of a particular element
or control. Or the stylesheet that's actually being served?

There's a couple of things that spring to mind, but suggestions will
probably depend on what exactly you're trying to accomplish.

Cheers
Ken



More information about the thelist mailing list