将另一页嵌入我的页面 [英] Embedding another page into my page
问题描述
大家好,
以下网址上有一张图片,我想把它放在
我的asp.net页面之一.I意思是我想把这个页面的内容嵌入我自己的
页面并得到它的图像。我有一个控件或技术我可以实现这个吗?
http:/ /www.tehrantraffic.com/gif.asp...TTCC%20website
非常感谢
我会尝试< iframe>元素。
HTH,
Axel Dahmen
------------ ------
" J-T" <重** @ Reza.Com> schrieb im Newsbeitrag
新闻:eH ************** @ tk2msftngp13.phx.gbl ...大家好,
以下网址上有一张图片,我希望在我的asp.net网页中找到它。我的意思是我想把这个页面的内容嵌入我的
自己的页面,并得到它的形象。有一个控制或tecnique,我可以实现这一点吗?
http://www.tehrantraffic.com/gif.asp...TTCC%20website
非常感谢
是的! < IFRAME>将会这样做。
< iframe
src =" http://www.tehrantraffic.com/gif.asp?g = cam3_ttcc_00001.jpg& t = TTCC%20website">< / iframe>
" Axel Dahmen" < NO ***** @ NoOneKnows.invalid>在消息中写道
新闻:Ot ************** @ TK2MSFTNGP12.phx.gbl ...我会试试< iframe>元素。
HTH,
Axel Dahmen
------------------
" J-T" <重** @ Reza.Com> schrieb im Newsbeitrag
新闻:eH ************** @ tk2msftngp13.phx.gbl ...大家好,
中嵌入这个页面的内容
拥有页面并得到它的图像。有一个控件或技术我可以完成这个吗?
http://www.tehrantraffic.com/gif.asp .. .TTCC%20website
非常感谢
>
另一种可能性是使用Web请求和文字控件。
这是我更喜欢的方法,因为您可以检查请求是否有效
和处理你请求不显示的页面的可能性...
这些内容:
''---创建请求
Dim WebRequest As System.Net.WebRequest = System.Net.WebRequest.Create(New
Uri(CurrentLink))
WebRequest.Timeout = 2000 >
''---获取请求产生的响应
Dim Response As System.Net.WebResponse = WebRequest.GetResponse
''---将页面内容下载到一个流中
Dim Stream As System.IO.Stream = Response.GetResponseStream
>
''---将流放入流式阅读器
Dim StreamReader As New System.IO.StreamReader(Stream)
''---将流读入字符串对象
Dim HtmlReceived As String = StreamReader.ReadToEnd
'' - - 将字符串放入文字控件中
Literal1.Text = HtmlReceived
''---清理
Stream .Close()
StreamReader.Close()
-
此致,
S. Justin Gengo,MCP
网站开发人员/程序员
www.aboutfortunate.com
混乱无序。
Nietzsche
Onin Tayson <乐********* @ compaid.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...是的! < IFRAME>将会这样做。
< iframe
src =" http://www.tehrantraffic.com/gif.asp?g = cam3_ttcc_00001.jpg& t = TTCC%20website"> < / iframe>
" Axel Dahmen" < NO ***** @ NoOneKnows.invalid>在消息中写道
新闻:Ot ************** @ TK2MSFTNGP12.phx.gbl ...我会尝试< iframe> ;元素。
HTH,
Axel Dahmen
------------------
" J-T" <重** @ Reza.Com> schrieb im Newsbeitrag
新闻:eH ************** @ tk2msftngp13.phx.gbl ...大家好,
中嵌入这个页面的内容
拥有页面并获取其图像。是否有控件或技术可以实现此目的?
http://www.tehrantraffic.com/gif .asp ... TTCC%20website
非常感谢
Hi All,
There is a picture on the following URL which I want to have it in one of
my asp.net pages .I mean I want to embed the content of this page in my own
page and get its image.Is there a control or tecnique which I can
accomplish this?
http://www.tehrantraffic.com/gif.asp...TTCC%20website
Thanks a lot解决方案I''d try an <iframe> element.
HTH,
Axel Dahmen
------------------
"J-T" <Re**@Reza.Com> schrieb im Newsbeitrag
news:eH**************@tk2msftngp13.phx.gbl...Hi All,
There is a picture on the following URL which I want to have it in one of
my asp.net pages .I mean I want to embed the content of this page in my own page and get its image.Is there a control or tecnique which I can
accomplish this?
http://www.tehrantraffic.com/gif.asp...TTCC%20website
Thanks a lot
Yep! <iframe> will do.
<iframe
src="http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website"></iframe>
"Axel Dahmen" <NO*****@NoOneKnows.invalid> wrote in message
news:Ot**************@TK2MSFTNGP12.phx.gbl...I''d try an <iframe> element.
HTH,
Axel Dahmen
------------------
"J-T" <Re**@Reza.Com> schrieb im Newsbeitrag
news:eH**************@tk2msftngp13.phx.gbl...Hi All,
There is a picture on the following URL which I want to have it in one of
my asp.net pages .I mean I want to embed the content of this page in my
ownpage and get its image.Is there a control or tecnique which I can
accomplish this?
http://www.tehrantraffic.com/gif.asp...TTCC%20website
Thanks a lot
Another possibility would be to use a web request and a literal control.
This is the method I prefer because you can check if the request is valid
and handle the possibility of the page you''re requesting not showing up...
Something along these lines:
''---Create the request
Dim WebRequest As System.Net.WebRequest = System.Net.WebRequest.Create(New
Uri(CurrentLink))
WebRequest.Timeout = 2000
''---Get the response produced by the request
Dim Response As System.Net.WebResponse = WebRequest.GetResponse
''---Download the page content into a stream
Dim Stream As System.IO.Stream = Response.GetResponseStream
''---Place the stream into a stream reader
Dim StreamReader As New System.IO.StreamReader(Stream)
''---Read the stream into a string object
Dim HtmlReceived As String = StreamReader.ReadToEnd
''---Place the string into a literal control
Literal1.Text = HtmlReceived
''---Cleanup
Stream.Close()
StreamReader.Close()
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Onin Tayson" <Le*********@compaid.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...Yep! <iframe> will do.
<iframe
src="http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website"></iframe>
"Axel Dahmen" <NO*****@NoOneKnows.invalid> wrote in message
news:Ot**************@TK2MSFTNGP12.phx.gbl...I''d try an <iframe> element.
HTH,
Axel Dahmen
------------------
"J-T" <Re**@Reza.Com> schrieb im Newsbeitrag
news:eH**************@tk2msftngp13.phx.gbl...Hi All,
There is a picture on the following URL which I want to have it in one
of
my asp.net pages .I mean I want to embed the content of this page in my
ownpage and get its image.Is there a control or tecnique which I can
accomplish this?
http://www.tehrantraffic.com/gif.asp...TTCC%20website
Thanks a lot
这篇关于将另一页嵌入我的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!