Wednesday 24 April 2013

Widgets

Asp.net master page example: how to use master and content page






<%@ Master Language="C#" %>

<!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>asp.net master page example: how to use master and content page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1 style="color:Red">My Site</h1>
        <hr />
        <table>
            <tr valign="top">
                <td>
                    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
                <td>
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
            </tr>
        </table>
        <hr />
        <div style="color:Gray">Page footer</div>
    </div>
    </form>
</body>
</html>


0 comments:

Post a Comment