Hi and thanks for replying ... but I still dont understand... for instance
in the second url they where pointing to the Build Action property which
isnt available anymore (?) ...
I am aware of that it isnt easy to understand what my problem really is... i
dont know for sure myself ... anyhow ... This is what I have come up with:
I have placed all my image-files in the App_GlobalResources-folder and added
them to a Images.resx file in the same folder. Then I created a aspx-file
for retrieving these images as the code below shows. Is this approach sane?
or is there some other more common method I have missed?
public partial class ASP_GetResource : System.Web.UI.Pag
{
protected void Page_Load(object sender, EventArgs e)
{
System.Drawing.Bitmap image = GetGlobalResourceObject("Images",
ResourceKey) as System.Drawing.Bitmap;
Response.ContentType = "image/gif";
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
image.Dispose();
}
string ResourceKey { get { return Request.QueryString["res"]; }}
}
/Andreas
Hi,
sure, these are called web resources and you can generate the call needed
to fetch them.
Here's link to tutorial:
http://www.asp.net/QuickStart/aspnet...bility.aspx#WR
But basically, you specify it to be a web resource with WebResource
attribute and access it with Page.ClientScript.GetWebResourceUrl () call.
And here's a good article on the subject
http://aspalliance.com/726
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke