Friday, October 28, 2022

How to make website page template with border ASP.NET



Change it in master page

<head>

<style>

 #page {

width: 80%;

margin: 0 auto;

border:2px grey solid;

padding: 10px;

background-color: #fff;

}

</style>


<body>

    <form id="form1" runat="server">

        <div id="page">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <uc1:header runat="server" id="header" />

        <div class="pull-right hidden-print" style="clear: both">

            <asp:Label runat="server" ID="lblUsername"></asp:Label>

            <asp:LinkButton runat="server" ID="logout" OnClick="logout_Click" CssClass="btn btn-danger btn-xs">Logout</asp:LinkButton>

            <asp:LinkButton runat="server" ID="changePassword" PostBackUrl="~/changepassword.aspx" CssClass="btn btn-default btn-xs">Change Password</asp:LinkButton>

        </div>

        <div class="clear">

            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

            </asp:ContentPlaceHolder>

        </div>

        <uc1:footer runat="server" id="footer" />

        </div>

    </form>

</body>

</head>

No comments:

Post a Comment