views:

24

answers:

0

I was only wondering if it is possible at all to use server code within an assembly embedded javascript resource file.

For example I downloaded an assembly resource sample project and I can see within the javascript resource file you can call server code. In this sample to get the url of another embedded resource (an image in this case) just like this:

<%= WebResource("MyWebResourceProj.MyResources.Test.gif") %>

but is I try to call other code like this for example:

<%= Date.Now %>

the code does not get interpreted, it is rendered as the same string...

Any ideas, I could not find answer if all server code inside a resource file is being interpreted or what the rules are...