Control Deployment

K

kishor

Hi,
I have developed a custom control, which is in the form of a DLL. Now I have
to deploy it .. My control uses some javascripts and images and few CSS.
These are now Out of projects and included in the client project. Is there
any way to include these files in control it self. So that I can deploy only
DLL to other machine for further use.

If this is possible Please lete me know how this can be done.

Regards and TIA,
KISHOR
 
B

Brock Allen

Yep. You need to include those files are embedded resources in your assembly,
then look into the Assembly.GetManifestResourceStream to extract those embedded
resources. One last thing you'll need to do is implement and register a IHttpHandler
to serve up those resources since <img> and client side js includes will
require a seperate request to the server.
 
K

kishor

Hi Brock Allen,
Thanxs for your help ...looking at your anwer I can guess there are a
possibilities of including images and JS as a resource in control. how ever I
am trying to get a final solution but still I am not clear on that, could you
please send me a simple sample code or proveide me links when can i get some
material releated to this.

TIA,
KISHOR
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top