Internal CSS [imported from GotDotNet]

Coordinator
Jun 21, 2007 at 6:52 AM
AWizardInDallas

User Posts:
3
Internal CSS Posted on: 11/05/2006 09:29:11


The style sheet in the handler doesn't seem to have any effect on the layout? What am I missing?


bleroy

User Posts:
17
Internal CSS Posted on: 05/23/2007 14:59:43


Not sure what you mean. It has effect if you're using it in handler mode, not in control mode. In that case you provide your own stylesheet at the page level.

Dec 8, 2007 at 3:48 AM
public static void GenerateCssResponse(HttpResponse response)
{
response.ContentType = "text/css"; /////////// <<<<<<<<<< Add this to fix your problem
response.Write(Css);
}