PC Review


Reply
Thread Tools Rate Thread

HOW can you show an HTML...

 
 
Drun
Guest
Posts: n/a
 
      7th Jun 2007
page (an HTML file) from an ASP.NET page?



 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      7th Jun 2007
<iframe> controls 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" <(E-Mail Removed)> wrote in message
news:9KL9i.36870$(E-Mail Removed)...
> page (an HTML file) from an ASP.NET page?
>
>
>



 
Reply With Quote
 
Michael Nemtsev
Guest
Posts: n/a
 
      7th Jun 2007
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>


 
Reply With Quote
 
Jason Kester
Guest
Posts: n/a
 
      7th Jun 2007
On Jun 7, 6:22 am, "Drun" <drimoh...@hotmail.com> wrote:
> 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/

 
Reply With Quote
 
Drun
Guest
Posts: n/a
 
      8th Jun 2007
i works
i even used transparency
cool stuff

"Eliyahu Goldin" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> <iframe> controls 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" <(E-Mail Removed)> wrote in message
> news:9KL9i.36870$(E-Mail Removed)...
>> page (an HTML file) from an ASP.NET page?
>>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show HTML String Just D. Microsoft ASP .NET 3 29th Jul 2006 05:20 PM
How to show html? (.net c#) .:.:. igor_sb .:.:. Microsoft C# .NET 1 20th Mar 2005 09:15 PM
html behind pps show =?Utf-8?B?cmFtaW4=?= Microsoft Powerpoint 3 4th May 2004 03:43 PM
../../ in html doesn't show up in IE =?Utf-8?B?SmVmZk0=?= Windows XP Internet Explorer 0 18th Apr 2004 03:46 AM
Show HTML help topic? Hubert Hermanutz Microsoft C# .NET 0 4th Feb 2004 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:31 AM.