WebResource with PerformSubstitution

G

Guest

I have a question regarding WebResource and in particular the
PerformSubstitution.

I see that the <%=WebResouce(…)%> can be used with a WebResource to perform
substitution on a resource to substitute the WebResourceUrl of other resource
referenced with the first (perhaps an image within an html file).

What I would like to be able to do is perform substitution on a script file
that contains <%=Control1.ClientID%> so that the clientID is output in the
script, however it appears that only other WebResource substitutions are
performed in this manner.

I currently have the script as a resource in a resx file that is embedded in
the controls assembly and replace the token with the correct clientID at the
PreRender stage (when registering the script), but thought it would be nice
to have the script available as a WebResource. Is there a way to achieve
this?

--
--------------------------
Shaun Venus

emailid: sunevnuahs
domain: hotmail.com
--------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top