Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ClientScriptManager without a page...

Reply
Thread Tools

ClientScriptManager without a page...

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      01-29-2006
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?



--
I have taken a vow of poverty. If you want to really **** me off, send me
money.


 
Reply With Quote
 
 
 
 
luckyhuss luckyhuss is offline
Junior Member
Join Date: Sep 2006
Posts: 2
 
      09-01-2006
Pass the ClientScriptManager as parameter to the method.

Then pass the Page.ClientScript object as the value.


Luckyhuss
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample usage of ClientScriptManager.RegisterForEventValidation n33470 ASP .Net 9 05-30-2010 09:01 AM
ClientScriptManager.RegisterClientScriptBlock vs ClientScriptManager.RegisterClientScript DNB ASP .Net 2 12-13-2007 10:14 PM
Callback ClientScriptManager.RegisterForEventValidation Varangian ASP .Net 7 07-10-2006 08:28 AM
ClientScriptManager.RegisterForEventValidation stewart ASP .Net 2 12-07-2005 09:52 AM
ClientScriptManager.RegisterForEventValidation =?Utf-8?B?QW5kcsOp?= ASP .Net 1 11-29-2005 07:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57