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

Parent Directory

Hi,
I have a question regarding parent directory. Suppose in IIS I have created a website called "testsite". This testsite is pointing to D:\Websites\ecommerce\testsite. In that directory I have an aspx page called test.aspx. This test.aspx have an image tag whose src is "../images/test.jpeg".Where would be that directory pointing to? Please remember that IIS "testsite" home directory is D:\Websites\ecommerce\testsite. Also will it work if I have a folder called images in D:\Websites\ecommerce ?
Thanks for your help.
Nov 11 '07 #1
4 1462
kenobewan
4,871 Expert 4TB
In testsite you have the file test.aspx and the folder images. How do you reference the test.jpg from test.aspx?
Nov 11 '07 #2
In testsite you have the file test.aspx and the folder images. How do you reference the test.jpg from test.aspx?
Thats what I wanted to know...whether I can access it or not. If yes then what would by src attribute say?
Nov 11 '07 #3
kenobewan
4,871 Expert 4TB
Yes you can access, but I thought it would be better if you try yourself. Referencing images is not usually something we deal with, I'd file this under assumed knowledge.
Nov 12 '07 #4
kunal pawar
297 100+
yes, ../ means see folder/file from outside current folder
Nov 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Golawala, Moiz M (GE Infrastructure) | last post by:
Hi all, What I am trying to do is write some generic code where I can get the path of the parent directory. for example if current working directory is 'Z:\\dirA\\Parent\\Child' I want to get...
4
by: RJ Dake | last post by:
Having problems with uploaded Database and SharePoint sites. At least one of the errors is mentioned below. Sites do not allow access to DB entry or results. Email feedback is MOST appreciated!...
2
by: Marvin | last post by:
Hi I get this message. The Include file '../main.asp' cannot contain '..' to indicate the parent directory. I think it is refering to the fact that I have a file called communication.asp,...
3
by: BobAchgill | last post by:
Is this the right way to get to back up to the immediate parent subdirectory? Directory.GetParent("\") or this? Directory.GetParent("..") Or this?
4
by: Paulers | last post by:
hello. how do I get the file's parent directory name out of a path like this? c:\test\myDirectory\file.txt Im looking to extract the "Directory" from the path so I can create myDirectory in...
4
by: vunet.us | last post by:
How to use server.mappath() parent folder correctly: Server.MapPath("../test.asp") Thank you for the hint.
4
by: davin.pearson | last post by:
Here is my file index.php: <?php include "../parent.php"; ?> When I try to run this code on a Linux server, it gives me the following error message: Warning: main(): open_basedir...
2
by: supra91 | last post by:
Hi, I have to read files from the parent directory and delete those files. This parent directory contains logs files. This directory also contains some sub directories and I do not want to delete...
3
by: =?Utf-8?B?UGF1bCBIYXRjaGVy?= | last post by:
I have a setup with two web applications, call them parent and child where child is web application held virtual underneath parent though not physically. What I'd like to be able to do is write...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.