HTML / ASPX图像 [英] HTML / ASPX image
问题描述
我的网页上使用了以下HTML。我需要它在页面上显示图形
图像,但不知道在代码隐藏中使用什么来显示
图形。如果我自己在浏览器中加载源URL,则会出现图形
,但是当我在网页中使用该标记时却没有。任何人都有关于VB的
建议吗?
< img
src =''http://www.domain。 com / MohawkWS / MohawkHitCounter.aspx?ItemID = 7103830413''
border = 0 alt>
I have the following HTML in use on my web page. I need it to show a graphic
image on the page but do not know what to use in the codebehind to make the
graphic appear. If I load the source url in a browser by itself, the graphic
appears, but when I use the tag in a web page it does not. Anyone have a
suggestion for VB?
<img
src=''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx?ItemID=7103830413''
border=0 alt>
推荐答案
我的印象是< img标签的src元素需要指向
到.gif文件或.jpg文件,而不是aspx的http响应
页。
" tma" < tm*@allisconfusing.net>在消息中写道
新闻:eT ************** @ TK2MSFTNGP12.phx.gbl ...
I''m under the impression that the src element of the <img tab needs to point
to either a .gif file or a .jpg file, not to the httpresponse of a aspx
page.
"tma" <tm*@allisconfusing.net> wrote in message
news:eT**************@TK2MSFTNGP12.phx.gbl...
我有以下HTML在我的网页上使用。我需要它在页面上显示
图形图像,但不知道在代码隐藏中使用什么来使
图形出现。如果我自己在浏览器中加载源URL,则会出现
图形,但是当我在网页中使用该标记时,它不会。有人对VB提出建议吗?
< img
src =''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx? ItemID = 7103830413''border = 0 alt>
I have the following HTML in use on my web page. I need it to show a graphic image on the page but do not know what to use in the codebehind to make the graphic appear. If I load the source url in a browser by itself, the graphic appears, but when I use the tag in a web page it does not. Anyone have a
suggestion for VB?
<img
src=''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx?ItemID=7103830413'' border=0 alt>
img控件加载图形,您正在加载ASPX页面。要做什么
你正在创建一个用户控件,然后在你的页面中使用它。
创建用户控件:
http:// msdn.microsoft.com/library/de...ercontrols.asp
添加用户控件:
http://msdn.microsoft.com/library /de...bformspage.asp
祝你好运! Ken。
-
Ken Dopierala Jr.
对于优秀的ASP.Net网站托管尝试:
< a rel =nofollowhref =http://www.webhost4life.com/default.asp?refid=Spinlighttarget =_ blank> http://www.webhost4life.com/default.asp?refid=Spinlight
如果您在我这里注册并需要帮助,请给我发电子邮件。
" tma" < tm*@allisconfusing.net>在消息中写道
新闻:eT ************** @ TK2MSFTNGP12.phx.gbl ...
Hi,
The img control loads a graphic, you are loading an ASPX page. To do what
you are doing create a user control and then use that in your page.
Creating a user control:
http://msdn.microsoft.com/library/de...ercontrols.asp
Adding a user control:
http://msdn.microsoft.com/library/de...bformspage.asp
Good luck! Ken.
--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"tma" <tm*@allisconfusing.net> wrote in message
news:eT**************@TK2MSFTNGP12.phx.gbl...
我有以下HTML在我的网页上使用。我需要它在页面上显示
图形图像,但不知道在代码隐藏中使用什么来使
图形出现。如果我自己在浏览器中加载源URL,则会出现
图形,但是当我在网页中使用该标记时,它不会。有人对VB提出建议吗?
< img
src =''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx? ItemID = 7103830413''border = 0 alt>
I have the following HTML in use on my web page. I need it to show a graphic image on the page but do not know what to use in the codebehind to make the graphic appear. If I load the source url in a browser by itself, the graphic appears, but when I use the tag in a web page it does not. Anyone have a
suggestion for VB?
<img
src=''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx?ItemID=7103830413'' border=0 alt>
>我的印象是< img标签的src元素需要
将
> I''m under the impression that the src element of the <img tab needs to
point
指向.gif文件或.jpg文件,而不是aspx
页面的httpresponse。
好吧,你的印象不错。 ASPX页面确实可以提供
图像,并且确实可以用在图像标签中。
-
HTH ,
凯文斯宾塞
..Net开发人员
微软MVP
我得到了很好的报酬
解决难题为生活
" i。 Wiin" <ⅱ**** @ yagoo.com>在消息中写道
新闻:eZ ************** @ TK2MSFTNGP14.phx.gbl ...我的印象是src元素的< img tab需要
指向.gif文件或.jpg文件,而不是指向aspx
页面的httpresponse。
" tma" < tm*@allisconfusing.net>在消息中写道
新闻:eT ************** @ TK2MSFTNGP12.phx.gbl ...
to either a .gif file or a .jpg file, not to the httpresponse of a aspx
page.
Well, you''re under the wrong impression. An ASPX page can indeed serve an
image, and can indeed be used in an image tag.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"i. Wiin" <ii****@yagoo.com> wrote in message
news:eZ**************@TK2MSFTNGP14.phx.gbl... I''m under the impression that the src element of the <img tab needs to point to either a .gif file or a .jpg file, not to the httpresponse of a aspx
page.
"tma" <tm*@allisconfusing.net> wrote in message
news:eT**************@TK2MSFTNGP12.phx.gbl...
我在我的上面使用了以下HTML网页。我需要它在页面上显示
I have the following HTML in use on my web page. I need it to show a
图形
图像,但不知道在代码隐藏中使用什么来构建
image on the page but do not know what to use in the codebehind to make
图形出现。如果我自己在浏览器中加载源URL,则会出现
graphic appear. If I load the source url in a browser by itself, the
graphic
graphic
,但是当我在网页中使用该标记时,它不会。任何人都有VB的建议吗?
< img
appears, but when I use the tag in a web page it does not. Anyone have a
suggestion for VB?
<img
src =''http://www.domain。 com / MohawkWS / MohawkHitCounter.aspx?ItemID = 7103830413''
src=''http://www.domain.com/MohawkWS/MohawkHitCounter.aspx?ItemID=7103830413''
border = 0 alt>
border=0 alt>
这篇关于HTML / ASPX图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!