ClientScriptManager without a page...

L

Lloyd Dupont

At some stage I'm inherithing from a kind of 'web component' which don't
inherit from SWU.Control and have no ClientScript property.

However I need to know (in order to make it work) an URL which will return
an image in my assembly's resource.
You know the url kind of: 'WebHandle.axd?a=VIBUINUIHBNVUH'

I tried something like:
ClientScriptManager csm = new ClientScriptManager();
base.ButtonImage = csm.GetWebResourceUrl(GetType(),
"WebUtils.Resources.PictureBox.gif");
But ClientScriptManager has no public constructor....
Any idea of what workaround I could use?
 
Joined
Sep 1, 2006
Messages
2
Reaction score
0
Re:

Pass the ClientScriptManager as parameter to the method.

Then pass the Page.ClientScript object as the value.


Luckyhuss
 

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,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top