Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Images do not show in IE browser on some client machines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
david - 13 Sep 2007 19:46 GMT
I used Visual Studio .NEt 2003 to develop a web form in which there is a bmp
format image. I used WebControls.Image in Design and set ImageUrl property
field to file:///C:\Inetpub\wwwroot\Demo\webimages\b2pentagons2.bmp

Any problem about it?

How to make a change for it?

Thanks

David
George Ter-Saakov - 13 Sep 2007 19:48 GMT
Do you think client's machines have that path
C:\Inetpub\wwwroot\Demo\webimages\b2pentagons2.bmp

....

George

>I used Visual Studio .NEt 2003 to develop a web form in which there is a
>bmp
[quoted text clipped - 8 lines]
>
> David
Mark Rae [MVP] - 13 Sep 2007 19:51 GMT
>I used Visual Studio .NEt 2003 to develop a web form in which there is a
>bmp
> format image. I used WebControls.Image in Design and set ImageUrl property
> field to file:///C:\Inetpub\wwwroot\Demo\webimages\b2pentagons2.bmp
>
> Any problem about it?

Yes - it doesn't exist on the client machines...

> How to make a change for it?

Don't use a hard-coded fully-qualified filespec - use a relative path
instead e.g.:

"../webimages/b2pentagons.bmp"

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

david - 13 Sep 2007 19:58 GMT
Thank you.

David

> >I used Visual Studio .NEt 2003 to develop a web form in which there is a
> >bmp
[quoted text clipped - 11 lines]
>
> "../webimages/b2pentagons.bmp"
Peter Bromberg [C# MVP] - 13 Sep 2007 19:52 GMT
the image path needs to be an http- addressable virtual or absolute url, eg.
mageUrl="webimages/b2pentagons2.bmp"  -- or --
imageUrl = "http://yourserver/webimages/b2pentagons2.bmp"

a "FILE:///..."  directive means "look for this on THIS machine's hard drive".

-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> I used Visual Studio .NEt 2003 to develop a web form in which there is a bmp
> format image. I used WebControls.Image in Design and set ImageUrl property
[quoted text clipped - 7 lines]
>
> David
david - 13 Sep 2007 19:58 GMT
Thanks.

David

> the image path needs to be an http- addressable virtual or absolute url, eg.
> mageUrl="webimages/b2pentagons2.bmp"  -- or --
[quoted text clipped - 19 lines]
> >
> > David

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.