473,396 Members | 1,799 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.

CTRL + F5 images not showing

158 100+
I have several jpg images (including my header) stored in App_Data/Images. I then drug the images onto my web form.

They display great on the web form, however when I press f5 or ctrl + f5 they do not show. All I get are the is the little red 'x'. I know the paths are correct after checking them. Any suggestions?

Thanks
Jolly
Nov 23 '09 #1

✓ answered by Frinavale

One other thing that you can try is not putting your images in your App_Data folder.

The App_Data folder is supposed to contain:

Application data files including MDF files, XML files, as well as other data store files. The App_Data folder is used by ASP.NET 2.0 to store an application's local database, which can be used for maintaining membership and role information.
The App_Data folder is not supposed to be used for your application's resources (like images). Create a new folder in your project (called "images" or something to that effect) and place your images in that folder.

-Frinny

3 2877
ThatThatGuy
449 Expert 256MB
This is a path problem buddy....
you must have specified the path as App_Data/Images/somepic.jpg

but that's not it.....

Use Server.MapPath("App_Data/Images/somepic.jpg")......
to allow the asp.net server to locate the pic....

as when you do App_Data/Images it searches it in the local machine path......

and when you map the server path using Server.MapPath().... it attaches the server path to your image folder and thus... asp.net server can now locate your specifed pic.....
Nov 23 '09 #2
Frinavale
9,735 Expert Mod 8TB
One other thing that you can try is not putting your images in your App_Data folder.

The App_Data folder is supposed to contain:

Application data files including MDF files, XML files, as well as other data store files. The App_Data folder is used by ASP.NET 2.0 to store an application's local database, which can be used for maintaining membership and role information.
The App_Data folder is not supposed to be used for your application's resources (like images). Create a new folder in your project (called "images" or something to that effect) and place your images in that folder.

-Frinny
Nov 23 '09 #3
Jollywg
158 100+
Frinny, your da bomb. I moved the images out of my app_data folder, drug them back onto my web form and they pulled up with no problems.

Thanks!
Nov 24 '09 #4

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

Similar topics

5
by: Bilal | last post by:
Hi, Is there any way to capture the action Ctrl+N (whether it in a hidden button or keyword - doesn't matter) in html, javascript or php? I appreciate any suggestions. Thank you and kind regards...
7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
11
by: Ian Davies | last post by:
Hello Im having problems displaying my images as thumbnails in a table. My code for producing the new width and height from the original image is as follows...
2
by: Carl Gilbert | last post by:
Hi I am developing a site that has 5 or 6 thumbnail pages each with 28 image on each. Each thumb nail has a matching larger image. So 5/6 groups of 28. When the user clicks on one of the...
8
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a...
0
by: Svein Erik | last post by:
I'm developing an application in C#.NET 2005. The app is going to have an image with a specific size, let's say 800x600 px, this is a map of a go-cart lane. And on top of this image i'm going to...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
3
by: roopashree | last post by:
hi all, I am using javascript to select a particular object and delete that object using delete key. I would like to know as to how am I to delete all objects placed in the drawing area...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.