.NET Framework - Images do not show in IE browser on some client machines
Asked By davi
13-Sep-07 02:46 PM
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
Visual Studio
(1)
WebControls.Image
(1)
ASP.NET
(1)
Image
(1)
BlogMetaFinder
(1)
ImageUrl
(1)
Bromberg
(1)
MageUrl
(1)
George Ter-Saakov replied...
Do you think client's machines have that path
C:\Inetpub\wwwroot\Demo\webimages\b2pentagons2.bmp
....
George
Mark Rae [MVP] replied...
Yes - it doesn't exist on the client machines...
Don't use a hard-coded fully-qualified filespec - use a relative path
instead e.g.:
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
pbromber replied...
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
davi replied...
davi replied...
ASP.Net - the "Big Picture"? .NET Framework Hi, I have a few questions about ASP.Net, as I have been using it for a while but my knowledge of the "big somewhat vague. . .) - In a closely-related matter, do any languages have issues accessing the full ASP.Net environment and facilities? For example, I found accessing .Net Collections in JScript problematic (though I how to do it). - What support to I have for the "native" Windows features under ASP.Net? Is everything done through the CLR? Can I access ADO COM objects in a moderately
an application which brings back 1000 records from a sql server database. Under the local asp.net development server provided with Visual Studio 2008, it takes about 1.8 seconds When I place this application in IIS it question is why does it take so long under IIS but not under the local asp.net development server? Any ideas? How can I get this 16 seconds down to a more on both IIS boxes The application is developed using .net framewor 3.5 and c#, asp.net Ilyas ASP.NET Discussions SQL Server (1) Visual Studio 2008 (1) Application Pool (1) App
writing some info out to a sql database. . . again. . that works running things out of visual studio. . but not when the code is published. . thanks shannon ASP.NET Discussions GetBaseException (1) WindowsIdentity (1) EventArgs (1) ASP.NET (1) IIS (1) Application (1) GetCurrent (1) Control (1) try using Server.GetLastError().GetBaseException() That you. - - Peter Site: http: / / www.eggheadcafe.com UnBlog: http: / / petesbloggerama.blogspot.com MetaFinder: http: / / www.blogmetafinder.com I'll try that. . I don't think the sql logging is causing any ve also tried writing out to a log file, again, that works when running in visual studio, but not when it is published. Hi Peter. . another question what is a way
Confusion versiones ASP.NET y Frameworks .NET Framework Hola. Tengo confusión en sobre los términos que se usan para referirse a las versiones de ASP.NET y los .NET Frameworks: en algunos sitios web se encuentran articulos que hablan de ASP.NET 2.0 trabajando con .NET Framework 3 y 3.5. Y en otros de ASP.NET 2, trabajando con .NET Framework 2.0. Por lo general, esta última referencia es la
Discussions BcadnSN7f4UbwWPVnZ2dnUVZ (1) SQL Server (1) Windows XP (1) Windows Server (1) Windows Update (1) Visual Studio (1) WaitForPendingFinalizers (1) Office (1) http: / / en.wikipedia.org / wiki / CLI_Languages <http: / / it.toolbox.com security by using code access security and the avoidance of buffer overruns. Juan T. Llibre, asp.net MVP asp.net faq : http: / / asp.net.do / faq / foros de asp.net, en español : http: / / asp.net.do / foros / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = But have