hi Bob,
1. You can add the images to your project, right click on them and go in
the
properties window and change the build action to "Embedded resources". To
retrieve the resources you can use the
ClientScriptManager.GetWebResourceUrl
Method. Also dont forget to apply the WebResourceAttribute metadata
attribute to mark the assembly for the resources that will be served.
The
sample code in the following msdn resource covers all this, and since you
have images and they were gif format, you would do for eg.
[assembly: WebResourceAttribute("mydllname.imagename.gif", "image/gif")]
instead of
[assembly: WebResource("script_include.js", "application/x-javascript")]
as per the sample code.
http://msdn2.microsoft.com/en-us/li...scriptmanager.getwebresourceurl(d=robot).aspx
2. You just expose public properties with getters and setters. Optionally
storing also into viewstate for persistance between postbacks for
properties
set in code versus set declaratively on the vs.net designer. You can
reference the following resources on msdn :
http://msdn2.microsoft.com/en-us/library/ms178648.aspx
3. You associate your custom web control with a ControlDesigner. This
reference on msdn included below might help you get started, however it
only
scratches the surface so you might want to look for other references as
you
deal with issues or want to do more than what you see in the sample code
:
http://msdn2.microsoft.com/en-us/library/system.web.ui.design.controldesigner.aspx
Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
I'm designing a web control, there are 3 issues for me:
(1) How to display a dynamic image in the web control, can HttpModules
and ControlDesigner do it?
(2) How to store and retrieve the properties values? so runtime web
control can set properties values based on designer time settings?
(3) How to make web control resizable during the designer time?
Thanks,
Bob