I have a ScriptControl
that uses an image as an embedded resource and GetWebResourceUrl
to generate the WebResource.axd
URL. I am currently using GetScriptDescriptors()
to send the URL to the JavaScript object.
The ScriptControl
can be in a Repeater
, so you may have 20+ instances. They all use the same images (not customizable through property), so I would like to set the URL once in a variable and share it. I know I could register a script block with a global variable, but would like to avoid that if possible. Is there a way to set a variable within the scope of the control type (global -> control type -> control instance)?