Link to home
Create AccountLog in
Avatar of RayT
RayTFlag for United States of America

asked on

Imbedded HTML

What is the easiest way to imbed an html into an ASP.NET web page?  

See attached code snippet.

<%@ Page Language="VB" MasterPageFile="~/NSMTemplate.master" AutoEventWireup="false" CodeFile="ZZZ.aspx.vb" Inherits="ZZZ" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

Open in new window

Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image


<%@ Page Language="VB" MasterPageFile="~/NSMTemplate.master" AutoEventWireup="false" CodeFile="ZZZ.aspx.vb" Inherits="ZZZ" title="Untitled Page" %>
<html>
<body>
<h1>Embedding HTML</h1>
<p>You can include any static html content you want just like this.</p>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<p>It can go down here as well</p>
</body>
</html>

Open in new window

Avatar of RayT

ASKER

The html is in a seperate file.  I want to display it when the page is launched.
ASKER CERTIFIED SOLUTION
Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of RayT

ASKER

Do you have a function that will get an HTML string from the HTML file?
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.