Last post Apr 05, 2010 08:48 PM by CruzerB
Feb 16, 2010 03:09 PM|Silverboy.net|LINK
I want to embed some image and java script file in usercontrol and extract them with code like this
Feb 16, 2010 08:08 PM|thuhue|LINK
You have tried the said technique successfully on custom controls and don't know how to do it on user controls? I guess the technique must be the same for custom controls and user controls. What is the problem you encounter?
Feb 17, 2010 09:41 AM|Silverboy.net|LINK
As I mentioned earlier ; this technique doesn't work in usercontrol
for example Images are not displayed .. and js files not embedded in usercontrol ....
Mar 12, 2010 04:48 AM|asmund|LINK
You coud try to use typeof(MyControl) instead of this.GetType()
Also, the mime type should be "image/jpg", not "image.jpg"
Apr 04, 2010 12:35 AM|jkirkerx|LINK
On a server control, the contents are compiled into the dll, thus the term embedded.
On a UserControl, there's no where to embed that content, so you can't embed.
Apr 05, 2010 08:48 PM|CruzerB|LINK
Maybe u can try to add ur image into the resources file. Pls refer http://www.jelovic.com/articles/resources_in_visual_studio.htm.