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

Image Src Question

Hi,

I have a folder in my web application folder that contains all of my images
for my site. I also have a folder called transforms in my web application
folder that holds my xsl files. My xsl files use images from my images
folder and right now I have hard coded the url to the image. I use
images/... for my web pages and I have tried ~/images/... and ..//images/.
How can I access my images from inside of transforms folder?

WebApp
-images
-transforms
Jan 26 '07 #1
3 942
I am assuming both folders are off the root.

Have you tried /images/theimage.jpg

"Fred" <fr**@fred.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

I have a folder in my web application folder that contains all of my
images for my site. I also have a folder called transforms in my web
application folder that holds my xsl files. My xsl files use images from
my images folder and right now I have hard coded the url to the image. I
use images/... for my web pages and I have tried ~/images/... and
..//images/. How can I access my images from inside of transforms folder?

WebApp
-images
-transforms

Jan 26 '07 #2


On Jan 26, 6:40 am, "Fred" <f...@fred.comwrote:
Hi,

I have a folder in my web application folder that contains all of my images
for my site. I also have a folder called transforms in my web application
folder that holds my xsl files. My xsl files use images from my images
folder and right now I have hard coded the url to the image. I use
images/... for my web pages and I have tried ~/images/... and ..//images/.
How can I access my images from inside of transforms folder?
The tilde operator (~) is a .Net thing and has nothing to do with the
web, http or XML/XSLT...
Set the base element in your head section of the HTML and use "/" to
denote that you need to go from "root" of your application (starts at
base)

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Jan 26 '07 #3
I have tried using /images and it does not work. Any other ideas?

"Rick" <ri**@di-wave.comwrote in message
news:OS**************@TK2MSFTNGP05.phx.gbl...
>I am assuming both folders are off the root.

Have you tried /images/theimage.jpg

"Fred" <fr**@fred.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

I have a folder in my web application folder that contains all of my
images for my site. I also have a folder called transforms in my web
application folder that holds my xsl files. My xsl files use images from
my images folder and right now I have hard coded the url to the image. I
use images/... for my web pages and I have tried ~/images/... and
..//images/. How can I access my images from inside of transforms folder?

WebApp
-images
-transforms


Jan 26 '07 #4

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

Similar topics

3
by: Ralph Freshour | last post by:
My .php app displays an image on the web page, I notice that different ..jpg images display "funny" - apparently they all have slightly different image widths and heights yet in the image tag I...
0
by: Vlado | last post by:
Hello, I need to copy/paste image from Java application to/from the System clipboard. On windows everything is just fine, but on Mac OS is not. The problem is that when I transfer image to the...
10
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several...
11
by: KarimL | last post by:
Thanks for your advices... but i need to get the Image height because i dynamically resize the height of my webcontrol based on the image height. More i just have the url (relative parth) to the...
68
by: Nak | last post by:
Hi there, This might sound like a silly question but, technically could an image object be used for any image format? For example if I were to make plugins for my application, could they be...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
12
by: Lance | last post by:
hey all, first time vb.net 2005 user, after sticking vb6 out for a long time... anyway, using this code ====================== Dim FS As FileStream = File.OpenRead(Filename) Dim theImage As...
4
by: LT.Ang | last post by:
I am developing an application that possibly opens very large images - bmp, jpeg, tiff. I have 2 questions: Language: C#, VS .NET 2003. 1. When the program opens a BMP image, the amount of...
6
by: Mark Denardo | last post by:
My question is similar to one someone posted a few months back, but I don't see any replies. Basically I want to be able to have users upload photos and save them in a database (as byte data)...
6
by: David Stone | last post by:
I have a simple question about the alt content of area elements within an image map: is it redundant to include phrases such as "link to..." or "jump to..."? My initial thought is 'yes', since...
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...
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: 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)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.