Yes if you use the .aspx extension you can do this in the Page directive
<%@ Page Language="c#" ContentType="text/javascript" %>
<%@ Page Language="c#" ContentType="text/css" %>
once you have it working th e way you want you probably want to cache it like this
<%@ OutputCache Duration="86400" VaryByParam="None" Location="ServerAndClient" %>
Hope it helps,
Joe
http://www.joeaudette.comhttp://www.mojoportal.commojoPortal is an Open Source CMS/Portal featuring WebParts and supporting MSSQL, MySQL, PostgreSQL, SQLite, and Firebird Sql