Thursday, March 29, 2012
HTML IMG vs ASP:IMAGE performance
What is the best choice to use HTML img tag or asp:image for best
performance?
thanks,
Goncalo BoleoHTML controls provide slightly better performance than Web Controls, so go
with the img tag.
Here's more info:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Gonalo Bolo" <gboleo@.netcabo.pt> wrote in message
news:el6Fu7PRFHA.356@.TK2MSFTNGP14.phx.gbl...
>I have no need to have server control over an image.
> What is the best choice to use HTML img tag or asp:image for best
> performance?
> thanks,
> Goncalo Boleo
>
If there's no need to have a server control, then just use a <img> tag (prim
arily
for simplicity, even though it is faster but it's negligible). If you are
using a server control there's essentially no difference between the HtmlCon
trols
and the WebContorls.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I have no need to have server control over an image.
> What is the best choice to use HTML img tag or asp:image for best
> performance?
> thanks,
> Goncalo Boleo
HTML IMG vs ASP:IMAGE performance
What is the best choice to use HTML img tag or asp:image for best
performance?
thanks,
Goncalo BoleoHTML controls provide slightly better performance than Web Controls, so go
with the img tag.
Here's more info:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Gonalo Bolo" <gboleo@.netcabo.pt> wrote in message
news:el6Fu7PRFHA.356@.TK2MSFTNGP14.phx.gbl...
>I have no need to have server control over an image.
> What is the best choice to use HTML img tag or asp:image for best
> performance?
> thanks,
> Goncalo Boleo
If there's no need to have a server control, then just use a <img> tag (primarily
for simplicity, even though it is faster but it's negligible). If you are
using a server control there's essentially no difference between the HtmlControls
and the WebContorls.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I have no need to have server control over an image.
> What is the best choice to use HTML img tag or asp:image for best
> performance?
> thanks,
> Goncalo Boleo
HTML IMG SRC
I am dealing with a lot of published pages on a particular website.
(web-editor/publish/archive) It is easier for me to remove all of the
"../../imgageDir/image001.jpg" references and replace then with
http://www.aWebsite.com/imageDir/image001.jpg...
Will this slow down my website or the rendering of the html pages. It is
all happening on the same website (no external images)
ie,
<html><body>
<img src="http://pics.10026.com/?src=../../imageDir/image001.jpg">
<img src="http://pics.10026.com/?src=../../imageDir/image002.jpg">
</body></html>
---
OR
---
<html><body>
<img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image001.jpg">
<img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image002.jpg">
</body></html>
which one is faster?
THanks,
PaulNiether is faster. Both are the same.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"psb" <pbellman@.msn.com> wrote in message
news:%23gciQEeFFHA.2600@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I am dealing with a lot of published pages on a particular website.
> (web-editor/publish/archive) It is easier for me to remove all of the
> "../../imgageDir/image001.jpg" references and replace then with
> http://www.aWebsite.com/imageDir/image001.jpg...
> Will this slow down my website or the rendering of the html pages. It is
> all happening on the same website (no external images)
> ie,
> <html><body>
> <img src="http://pics.10026.com/?src=../../imageDir/image001.jpg">
> <img src="http://pics.10026.com/?src=../../imageDir/image002.jpg">
> </body></html>
> ---
> OR
> ---
> <html><body>
> <img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image001.jpg">
> <img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image002.jpg">
> </body></html>
> which one is faster?
> THanks,
> Paul
>
HTML IMG SRC
I am dealing with a lot of published pages on a particular website.
(web-editor/publish/archive) It is easier for me to remove all of the
"../../imgageDir/image001.jpg" references and replace then with
http://www.aWebsite.com/imageDir/image001.jpg...
Will this slow down my website or the rendering of the html pages. It is
all happening on the same website (no external images)
ie,
<html><body>
<img src="http://pics.10026.com/?src=../../imageDir/image001.jpg">
<img src="http://pics.10026.com/?src=../../imageDir/image002.jpg">
</body></html>
------------
OR
------------
<html><body>
<img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image001.jpg">
<img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image002.jpg">
</body></html
which one is faster?
THanks,
PaulNiether is faster. Both are the same.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"psb" <pbellman@.msn.com> wrote in message
news:%23gciQEeFFHA.2600@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I am dealing with a lot of published pages on a particular website.
> (web-editor/publish/archive) It is easier for me to remove all of the
> "../../imgageDir/image001.jpg" references and replace then with
> http://www.aWebsite.com/imageDir/image001.jpg...
> Will this slow down my website or the rendering of the html pages. It is
> all happening on the same website (no external images)
> ie,
> <html><body>
> <img src="http://pics.10026.com/?src=../../imageDir/image001.jpg">
> <img src="http://pics.10026.com/?src=../../imageDir/image002.jpg">
> </body></html>
> ------------
> OR
> ------------
> <html><body>
> <img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image001.jpg">
> <img src="http://pics.10026.com/?src=http://www.aWebsite.com/imageDir/image002.jpg">
> </body></html>
> which one is faster?
> THanks,
> Paul