473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

ClientScriptManager without a page...

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 piss me off, send me
money.
Jan 29 '06 #1
0 1214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
2
by: stewart | last post by:
Hi. I have an asp:dropdown control to which I add items on the client, when the page is posted back I get this error message. Invalid postback or callback argument. Event validation is enabled...
3
by: n33470 | last post by:
Hi all, I have a dropDownList on a web page that is populated by client-side script. I get an error on PostBack of the page. I've seen quite a few posts about this, so I understand the issue,...
7
by: Varangian | last post by:
Hi all, I have a question, what does the function ClientScriptManager.RegisterForEventValidation really does? Does it means securing your client side code? more security? The question is how...
1
by: chris | last post by:
This topic is to get some details about the Event Validation feature in ASP.NET 2.0. I have researched this topic quite a bit via the web, and understand, for the most part how this works and why...
1
by: =?Utf-8?B?SmltSGVhdmV5?= | last post by:
I have a web page which is using a "Master Page". I am wanting to use some existing functionality which allows for the look up of an email address. This functionality is contain within a "form". ...
2
by: DNB | last post by:
What is the difference between ClientScriptManager.RegisterClientScriptBlock and ClientScriptManager.RegisterClientScript Thanks DNB
1
by: news.rz.uni-karlsruhe.de | last post by:
What exactly is the difference between ScriptManager and ClientScriptManager? Do I use the ScriptManager whenever I use a script on an asp-ajax enabled page and the ClientScriptmanager...
7
by: AAaron123 | last post by:
I read the help on which says: The ClientScriptManager class is used to manage client-side scripts and add them to Web applications... But could use a little help. Can someone tell me what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.