[thelist] ASP.NET: accessing the style of the page inserver-sidecode?
darren
darren at web-bitch.co.uk
Tue Sep 30 04:02:28 CDT 2003
On Tuesday, September 30, 2003 at 09:03, Jason Handby wrote:
<snip>
JH> I've been looking at the server-side object model and I can't actually see
JH> any way of getting at anything in the <head> section of a document from
JH> server-side code. Am I missing something?
use a literal in the head and then assign the new style to its text
property is what i'd go with.
<head>
<style>
<asp:literal id="newStyle" runat="server" text="" />
</style>
</head>
if you don't have any other style declarations, you could also have the
literal output the <style></style> tags.
hth,
darren.
More information about the thelist
mailing list