Embed ".html" file into ".aspx" file

Discussion in '.NET' started by yukijocelyn, Aug 6, 2007.

  1. yukijocelyn

    yukijocelyn

    Joined:
    Jul 25, 2007
    Messages:
    1
    I want to embed a .html file into my .aspx page. My asp.net page has a master page:
    ______________________________________________________________
    <%@ Master Language="VB" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    &nbsp;<div style="text-align: left">
    <table style="z-index: 113; left: 6px; width: 816px; position: absolute; top: 15px;
    height: 583px">
    <tr>
    <td style="height: 38px" width="20%">
    </td>
    <td style="width: 66px; height: 38px">
    <h1>
    &nbsp;My Web Page</h1>
    </td>
    </tr>
    <tr>
    <td style="width: 2px">
    <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Style="z-index: 100;
    left: 15px; position: absolute; top: 136px">
    </asp:Menu>
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
    &nbsp;
    </td>
    <td width="80%" align=left valign=top>
    <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
    </asp:contentplaceholder>
    </td>
    </tr>
    </table>
    </div>
    </div>
    </form>
    </body>
    </html>

    ______________________________________________________________

    The page where I want to embed the html file has these codes:
    ______________________________________________________________
    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="My Web Page - Dreams" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="Section1">

    This is where I will embed the html file into.

    </div>
    </asp:Content>
    ______________________________________________________________
    what codes shd i use to embed in? Please advise! Thank you!
    Last edited: Aug 7, 2007
    yukijocelyn, Aug 6, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Olav Tollefsen

    How to embed dynamic generated image into HTML?

    Olav Tollefsen, Mar 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,922
    Olav Tollefsen
    Mar 1, 2004
  2. John
    Replies:
    2
    Views:
    1,128
  3. Failure
    Replies:
    1
    Views:
    1,112
    Failure
    Sep 7, 2003
  4. Mark123
    Replies:
    0
    Views:
    672
    Mark123
    Sep 2, 2008
  5. L Ng
    Replies:
    1
    Views:
    985
    Roedy Green
    Dec 2, 2012
Loading...

Share This Page