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

Display image from one level up using asp and access

Help Please

First time question.

Creating a simple cms website using asp and access.

Problem I am having is how to display an image from a folder one level up.

This is what I use to display an image pulled from the db

<% Response.Write("<img src=""" & strMainLogo & """ alt=""" & strMainLogoAlt & """ />") %>

Cant figure out how to do the "../" bit

THanks in advance
Oct 12 '07 #1
2 1690
r035198x
13,262 8TB
Help Please

First time question.

Creating a simple cms website using asp and access.

Problem I am having is how to display an image from a folder one level up.

This is what I use to display an image pulled from the db

<% Response.Write("<img src=""" & strMainLogo & """ alt=""" & strMainLogoAlt & """ />") %>

Cant figure out how to do the "../" bit

THanks in advance
You posted this in the wrong forum.
Moved from Java forum to ASP forum.
Oct 12 '07 #2
Help Please

First time question.

Creating a simple cms website using asp and access.

Problem I am having is how to display an image from a folder one level up.

This is what I use to display an image pulled from the db

<% Response.Write("<img src=""" & strMainLogo & """ alt=""" & strMainLogoAlt & """ />") %>

Cant figure out how to do the "../" bit

THanks in advance
Anyone?

The above code displays the image from the db on the same level. However, when logged into the admin area (seperate folder) the image is a broken link and I need help with the above code to get it to display.

In regular html the image would display within the same folder like such

<img src="img/main_logo.jpg"

and in another folder <img src="../img/main_logo.jpg"

Do you see my problem?

Thanks in advance
Oct 24 '07 #3

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

Similar topics

4
by: Shelly | last post by:
This is driving me crazy and makes no sense. Any suggestions will be appreciated. I upload an image to a staging area. I have written software to look at the images, and if accepted it is...
9
by: Wally | last post by:
I am trying to display images from an Access 2000 database and I get an error "Invalid Parameter Used" when I execute the code line "picBLOB.Image = Image.FromStream(stmBLOBData)" in my Visual...
3
by: Ken | last post by:
I have a database called autographs.mdb that is in the "XYZ" folder in the "database" folder. I have a form in the database that I want to display a photo of the celeb on. The photos are in a...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
1
by: Eric Keung | last post by:
Hi all, my case is I want to get an image from access database and I just know it's "OLE object" field type at access I also don't know how to insert it into access here is my code and it just...
0
by: Crystal | last post by:
I have created a small program that prints out an organization chart in PHP using the GD lib's imagecreate, imageline and imagestring functions. Basically, a user selects an employee from a...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net app, in the page there is a scan activex which could scan and save a jpg file in client harddisk. How could we access and display this jpg file on the fly using js in the client...
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: 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...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.