473,287 Members | 1,643 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,287 software developers and data experts.

How to work with images in resources

WT
Hi,
Documpentation for VS 2005 is not clear about how to put a gif image in
resources and how to get it from an <asp:image .../> or <img /> web control.

It seems that IE send some .axd process to get images or .js scripts from
resources for MS controls, how to do this.

Thanks
CS
May 16 '06 #1
5 1290
loading images is an asynchronious matter.
And thus not sequential.
If you want to use resources you might consider to use a generic handler and
stream the image to the user.
It's very easy..

I discourage you to do this, maintenance of your project will be worse, if
you need to upload the darn thing each time.

But as learning thing, or for dynaminc image loading you might consider the
..ashx stuff.
:)

"WT" <WT@newsgroups.nospam> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
Documpentation for VS 2005 is not clear about how to put a gif image in
resources and how to get it from an <asp:image .../> or <img /> web
control.

It seems that IE send some .axd process to get images or .js scripts from
resources for MS controls, how to do this.

Thanks
CS

May 16 '06 #2
WT
Thanks, but its done by asp.net 2 ???

"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> a écrit dans le message de news:
e4**********@azure.qinip.net...
loading images is an asynchronious matter.
And thus not sequential.
If you want to use resources you might consider to use a generic handler
and stream the image to the user.
It's very easy..

I discourage you to do this, maintenance of your project will be worse, if
you need to upload the darn thing each time.

But as learning thing, or for dynaminc image loading you might consider
the .ashx stuff.
:)

"WT" <WT@newsgroups.nospam> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
Documpentation for VS 2005 is not clear about how to put a gif image in
resources and how to get it from an <asp:image .../> or <img /> web
control.

It seems that IE send some .axd process to get images or .js scripts from
resources for MS controls, how to do this.

Thanks
CS


May 16 '06 #3
Of course, you can do about anything with asp.net

A generic page is an .ashx file.
the image src should point to that.
I can recommend you to use paramters for image indexes like:
....myimagehandler.ashx?img=1

In the handler use a switch() and do a
response.write...(resources.resource.imagename...)
The contenttype must be set as well like image/jpeg ( i forgot but you know
what i mean)
I don't think you have to do anything else.

It's really not dificult, try it out..

"WT" <WT@newsgroups.nospam> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
Thanks, but its done by asp.net 2 ???

"Edwin Knoppert" <in**@pbsoft.speedlinq.nl> a écrit dans le message de
news: e4**********@azure.qinip.net...
loading images is an asynchronious matter.
And thus not sequential.
If you want to use resources you might consider to use a generic handler
and stream the image to the user.
It's very easy..

I discourage you to do this, maintenance of your project will be worse,
if you need to upload the darn thing each time.

But as learning thing, or for dynaminc image loading you might consider
the .ashx stuff.
:)

"WT" <WT@newsgroups.nospam> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
Documpentation for VS 2005 is not clear about how to put a gif image in
resources and how to get it from an <asp:image .../> or <img /> web
control.

It seems that IE send some .axd process to get images or .js scripts
from resources for MS controls, how to do this.

Thanks
CS



May 16 '06 #4
Hi CS,

Thank you for posting!

From your description, I assume you are talking about one of ASP.NET 2.0
new features: Web Resources. At a highlevel it provides a nice way for
control developers to encapsulate resources for their controls within a
compiled assembly (as resources), and then be able to leverage them at both
runtime and design-time without having to copy files all over their dev
machine and web-server (for example: for images, scripts, etc).

WebResource.axd is a new Handler we are shipping to allow control and page
developers to download resources that are embedded in an assembly.

For more information on how to work with Web Resources in ASP.NET 2.0:
http://support.microsoft.com/kb/910442/

Regards,

Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

May 18 '06 #5
WT
Thanks Walter, that's what I was looking for.
CS
"Walter Wang [MSFT]" <wa****@online.microsoft.com> a écrit dans le message
de news: Xv**************@TK2MSFTNGXA01.phx.gbl...
Hi CS,

Thank you for posting!

From your description, I assume you are talking about one of ASP.NET 2.0
new features: Web Resources. At a highlevel it provides a nice way for
control developers to encapsulate resources for their controls within a
compiled assembly (as resources), and then be able to leverage them at
both
runtime and design-time without having to copy files all over their dev
machine and web-server (for example: for images, scripts, etc).

WebResource.axd is a new Handler we are shipping to allow control and page
developers to download resources that are embedded in an assembly.

For more information on how to work with Web Resources in ASP.NET 2.0:
http://support.microsoft.com/kb/910442/

Regards,

Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

May 18 '06 #6

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

Similar topics

1
by: jphelan | last post by:
I am developping a software program that covers a range of nonprofit organization management needs through various modules. I am looking for images/symbols to use with buttons for navigating with....
1
by: Chris Soulsby | last post by:
Hi, I've wrote a AxWebBrowser control to display html interfaces in my application. This works fine, however, I would like to load images from my application's resources instead of saving them...
1
by: - Steve - | last post by:
I've assigned three pictures as resources. So I can access them via Resources.Image1, Resources.Image2, etc On the buttons I try to do the following if(Button1.Image == Resources.Image1) ...
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
2
by: poojo hackma | last post by:
In my Project, I have added a couple hundred images using "drag-n-drop" to the Properties.Resources section. All of these images were in the "images" folder of my Project on my computer, and the...
2
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard...
0
by: Steave | last post by:
Hi, using Managed C++ (.Net 2.0), I want to embed some images within an executable using a .resX file, and upon an event (in this case a combo box changing), I want the picture box to update with a...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
4
by: CGatto | last post by:
Hello, Just wondering if anyone has ever managed to find a way to have a datagridviewimagecolumn display different images on different rows depending on some data element in the row. Our...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.