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

Jason Handby jasonh at corestar.co.uk
Tue Sep 30 02:27:54 CDT 2003


Hi all,


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.





Jason



More information about the thelist mailing list