Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

HOW can you show an HTML...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Drun - 07 Jun 2007 05:22 GMT
page (an HTML file) from an ASP.NET page?
Eliyahu Goldin - 07 Jun 2007 08:19 GMT
<iframe> controls shows web pages. Is it what you are after?

Signature

Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> page (an HTML file) from an ASP.NET page?
Drun - 08 Jun 2007 04:28 GMT
i works
i even used transparency
cool stuff

> <iframe> controls shows web pages. Is it what you are after?
>
>> page (an HTML file) from an ASP.NET page?
Michael Nemtsev - 07 Jun 2007 08:44 GMT
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

D> page (an HTML file) from an ASP.NET page?
D>
Jason Kester - 07 Jun 2007 09:36 GMT
> 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/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.