By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

HOW can you show an HTML...

P: n/a
page (an HTML file) from an ASP.NET page?

Jun 7 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
<iframecontrols shows web pages. Is it what you are after?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Drun" <dr*******@hotmail.comwrote in message
news:9K*******************@wagner.videotron.net...
page (an HTML file) from an ASP.NET page?

Jun 7 '07 #2

P: n/a
Hello Drun,

Just render your page to the string using StringBuilder + StringWriter +
HtmlTextWriter + RenderControl

See the sample which use this approach there http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

Dpage (an HTML file) from an ASP.NET page?
D>
Jun 7 '07 #3

P: n/a
On Jun 7, 6:22 am, "Drun" <drimoh...@hotmail.comwrote:
page (an HTML file) from an ASP.NET page?
As in, you have to file local? Simple then. Just suck it in with
System.IO methods then stream it back out to the page. Either through
Response.Write() or by dumping it into a Literal control.

If the file is living on another server that you can only access via
HTTP, you'll need to use HttpWebRequest to pull the file local before
you can dump it onto the page.

Good luck.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/

Jun 7 '07 #4

P: n/a
i works
i even used transparency
cool stuff

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:ue**************@TK2MSFTNGP02.phx.gbl...
<iframecontrols shows web pages. Is it what you are after?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Drun" <dr*******@hotmail.comwrote in message
news:9K*******************@wagner.videotron.net...
>page (an HTML file) from an ASP.NET page?


Jun 8 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.