Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page named Product.aspx and a page named Login.aspx.I use Masterpage for both.But the width of the Product.aspx not equal width of Login.aspx when viewed on a browser.Product.apsx is greater than Login.aspx.Product.aspx have a datalist with repeatcolumn is 5.
How to set Product.aspx width equal Login.aspx width?
My Masterpage:
ASP.NET
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
        .style1
        {
            width: 990px;
            height: 488px;
        }
        .style2
        {
            height: 251px;
        }
        .style3
        {
            height: 14px;
        }
        .style4
        {
            height: 259px;
        }
        .style5
        {
            height: 14px;
            width: 120px;
        }
        .style6
        {
            height: 259px;
            width: 120px;
        }
        .style7
        {
            width: 120px;
        }
        .style8
        {
            height: 14px;
            width: 602px;
        }
        .style9
        {
            height: 259px;
            width: 602px;
        }
        .style10
        {
            width: 602px;
        }
        .style11
        {
            width: 45px;
        }
        .style12
        {
            width: 83px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table class="style1">
        <tr>
            <td class="style2" colspan="3">
            </td>
        </tr>
        <tr>
            <td class="style5">
            </td>
            <td class="style8">
                <table style="width:100%;">
                    <tr>
                        <td class="style11">
                            Home</td>
                        <td class="style12">
                            Product</td>
                        <td>
                            Contact</td>
                    </tr>
                </table>
            </td>
            <td class="style3">
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:DataList ID="DataList1" runat="server">
                </asp:DataList>
            </td>
            <td class="style9">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </td>
            <td class="style4">
            </td>
        </tr>
        <tr>
            <td class="style7">
                 </td>
            <td class="style10">
                 </td>
            <td>
                 </td>
        </tr>
    </table>
    </form>
</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900