Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Render HTML page in an ASP.NET page

Status
Not open for further replies.

BoostMR2

IS-IT--Management
Jul 20, 2007
33
US
My personell have the need to check website connectivity, even if their client machines cannot get to the desired website. So let's assume a client cannot get to google.com, and they use my website to see if the server can get to google.com.

I have an ASP.NET page WebCheck.aspx. This page uses a HTTPSWebRequest object to retrieve the HTML source from a page, such as and sets it to a string variable, so I have the HTML source code. If I get code, i know I have connectivity. Now I need to display this page in my .aspx page, and an Iframe or something.

<IFRAME style="width: 90%;" id="_Frame" runat="server"></IFRAME>

which works, and shows the webpage in the iframe correctly, but all it does is set the src to the webpage. So the client's browser is connecting to google.com, instead of verifying that it's the server that can get to google.com.

Is there an HTML object that will "render" a website inside my .aspx page, instead of just showing the code itself? For example:

<HTMLRender> .....all of source html..... </HTMLRender>

and it will show the homepage of google.com?

Or maybe there is a way for the .aspx page to be a "web portal" in a sense and render the html in that way?
 
Update:
After reviewing this and some other issues, i have decided to turn this app into a client side .exe rather than a web app. There are many other things I want to do to, such as checking client configuration (DNS, IE Exceptions, etc.) that are not practical from a server. Please disreguard this post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top