Hi Jrl,
Thanks for your reply.
Do you mean use the <% ... %> expression in static css style file? I'm
afraid this is not supported since <%XX %> expression is working in ASPX
page only.
If you want to let the css stylesheet contains some values that are
dynamically loaded(from resource or other location). I think you may
consider using a custom httphandler to output the css stylesheet and do
some string replacement in the httphandler for the css stylesheet.
For example, you can define the following kind of static css template:
=======
.myclass
{
background-color: [#colorID];
...
}
=======
your httphandler need to parse the requested css style template and replace
those #colorID with actual values(loaded from resource file or other place).
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.
--------------------
>From: "jrl" <jrl@newsgroup.nospam>
>Newsgroups: microsoft.public.vsnet.general
>Subject: Re: can I define custom colors?
>Thanks Steven,
>
[quoted text clipped - 51 lines]
>> ==================================================
>> Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
>> ications.
>>
[quoted text clipped - 44 lines]
>>>
>>><body bgcolor=sage> //in the aspx
jrl - 10 Mar 2008 07:28 GMT
Yes, this is exactly what I'm seeking. As this is a new area for me, I will
probably need to find some example I can learn from (to make a custom
httphandler).
If you happen to know an example you can link to, that would be appreciated.
However, I realize this is a lot to ask, and if it is not easily available,
I will search for it in other ways.
thanks,
> Hi Jrl,
>
[quoted text clipped - 158 lines]
>>>>
>>>><body bgcolor=sage> //in the aspx
Steven Cheng - 10 Mar 2008 09:06 GMT
Yes, I know some examples since this is also a common question:).
One good example is building a Image generator through httphandler. It
demonstrate how to use httphandler to create a handler that will return
dynamic image stream to client(so that you can display the stream through
<img> tag).
Here are the related articles about creating custom httphandlers:
#Extending ASP.NET with HttpHandlers and HttpModules (cont'd)
http://www.devx.com/dotnet/Article/6962/0/page/3
#Build an ASP.NET Thumbnail Image Generator
http://www.eggheadcafe.com/articles/20041104.asp
#Use Custom HTTP Handlers in Your ASP.NET Applications
http://www.developer.com/net/asp/article.php/3565541
Best regards,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>X-Trace-PostClient-IP: 70.67.40.71
>From: "jrl" <jrl@newsgroup.nospam>
>Newsgroups: microsoft.public.vsnet.general
>Subject: Re: can I define custom colors?
>Yes, this is exactly what I'm seeking. As this is a new area for me, I will
>probably need to find some example I can learn from (to make a custom
[quoted text clipped - 112 lines]
>>>> ==================================================
>>>> Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
>>>> ications.
>>>>
[quoted text clipped - 49 lines]
>>>>>
>>>>><body bgcolor=sage> //in the aspx