<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="sales.aspx.cs" Inherits="_Default" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="css/mt_style.css" type="text/css" /><script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  
}//-->
</script><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: -2px;
margin-right: 0px;
}
.DataGridFixedHeader 

POSITION:relative;
    TOP:   expression(this.offsetParent.scrollTop); 
}
.formlists {
BACKGROUND-COLOR: #cde123; BORDER-BOTTOM: #5a5a5a 1pt solid; BORDER-LEFT: #5a5a5a 1pt solid; BORDER-RIGHT: #5a5a5a 1pt solid; BORDER-TOP: #5a5a5a 1pt solid; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; FONT-SIZE: 8pt; FONT-WEIGHT: normal; TEXT-DECORATION: none
}
.form {
BACKGROUND-COLOR: #f8f8f8; BORDER-BOTTOM: #5a5a5a 1pt solid; BORDER-LEFT: #5a5a5a 1pt solid; BORDER-RIGHT: #5a5a5a 1pt solid; BORDER-TOP: #5a5a5a 1pt solid; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"; FONT-SIZE: 8pt; FONT-WEIGHT: normal; TEXT-DECORATION: none
}
#Layer1 {
position:absolute;
width:100%;
height:1150px;
z-index:1;
left: 0px;
top: 70px;
        visibility:visible 
}
-->
</style>
<SCRIPT language="javascript" src="js/mt_dropdownC.js" type="text/javascript"></SCRIPT>
<SCRIPT language="javascript" src="js/mt_dropdown_initialize.js" type="text/javascript"></SCRIPT>
</head>
<body onload="init();" leftmargin="0" topmargin="0" marginheight="0">
<form id="form1" runat="server">
<div style="float:right; height:200px">
<table border="0" cellpadding="0" cellspacing="0" width="895" ALIGN="CENTER">
<tr><td align="center">
<img he src="img/SaraLogo.png">
</td></tr>
<tr> 
<td colspan="17" bgcolor="#a9aaa5" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td background="img/left.gif"> 
<table border=0 cellpadding=0 cellspacing=0 width=895 align="left">
<tbody> 
<tr> 
<td><a href="#" id=menu1 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button1 name=button1 src="img/1UD-1PDS.gif" width=70></a></td>
<td><a href="#" id=menu2 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button2 name=button2 src="img/1UD-2ADM.gif" width=70></a></td>
<td><a href="#" id=menu3 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button3 name=button3 src="img/1UD-3HFM.gif" width=70></a></td>
<td><a href="#" id=menu4 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button4 name=button4 src="img/1UD-4ACC.gif" width=70></a></td>
<td><a href="#" id=menu5 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button5 name=button5 src="img/1UD-5BIS.gif" width=70></a></td>
<td><a href="#" id=menu6 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button6 name=button6 src="img/1UD-6MKT.gif" width=70></a></td>
<td><a href="#" id=menu7 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button7 name=button7 src="img/1UD-7SLM.gif" width=70 onMouseMove="change()" onMouseOut="change1()"></a></td>
<td><a href="#" id=menu8 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button8 name=button8 src="img/2UF-1PUR.gif" width=70></a></td>
<td><a href="#" id=menu9 ><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button9 name=button9 src="img/2UF-2PDV.gif" width=70></a></td>
<td><a href="#" id=menu10><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button10 name=button10 src="img/2UF-3PRD.gif" width=70></a></td>
<td><a href="#" id=menu11><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button11 name=button11 src="img/2UF-4TRD.gif" width=70></a></td>
<td><a href="#" id=menu12><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button12 name=button12 src="img/2UF-5STK.gif" width=70></a></td>
<td><a href="#" id=menu13><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button13 name=button13 src="img/2UF-6DIS.gif" width=70></a></td>
<td><a href="#" id=menu14><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button14 name=button14 src="img/3DT-1SLS.gif" width=70></a></td>
<td><a href="#" id=menu15><img style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" border=0 height=24 id=button15 name=button15 src="img/4UU-1SLS.gif" width=70></a></td>
<td background="img/left.gif">&nbsp;</td>
</tr>
</tbody> 
</table>
<img src="img/left.gif" style="border-left-width:1px; border-left-color:#000000;border-left-style: solid;
" width="83" height="24"></td>
</tr>
</table>
</td>
<td ><img src="img/spacer.gif" width="1" height="28" border="0"></td>
</tr>
</table>
<font color="#000000" class="headernav"></font>
<font color="#000000" class="headernav"></font>
<font color="#000000" class="headernav"><SCRIPT LANGUAGE=javascript SRC="js/mt_dropdown_content.js"></SCRIPT><br /><br /></font> 
</div>
我把层删了以后可以显示出来

解决方案 »

  1.   


    <div id="Layer1">
    <div class="table">
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/db/depaulcorp.mdb" SelectCommand="SELECT [NO], [ORDEREDDATE], [CUSTOMER], [ITEM], [MODEL], [CR], [UNITPRICE], [UNIT], [QTYYD], [QTYKG], [AMTRMB], [$COLLECTDATE], [DELIVERYDATE], [DONE], [SALESCHR], [SALESDEV], [REMARK] FROM [sales]"></asp:AccessDataSource>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" Font-Size="8pt" Width="100%" OnRowCreated="GridView1_RowCreated" OnDataBound="GridView1_DataBound">
            <Columns>
                <asp:BoundField DataField="NO" HeaderText="NO" SortExpression="NO" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="ORDEREDDATE" HeaderText="ORDERED\nDATE" SortExpression="ORDEREDDATE" DataFormatString="{0:yyyy-mm-dd}" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="CUSTOMER" HeaderText="CUSTOMER" SortExpression="CUSTOMER" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="ITEM" HeaderText="ITEM" SortExpression="ITEM" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="MODEL" HeaderText="MODEL" SortExpression="MODEL" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="CR" HeaderText="CR" SortExpression="CR" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="UNITPRICE" HeaderText="UNITPRICE" SortExpression="UNITPRICE" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="UNIT" HeaderText="UNIT" SortExpression="UNIT" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="QTYYD" HeaderText="QTY\nYD" SortExpression="QTYYD" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="20px" />
                </asp:BoundField>
                <asp:BoundField DataField="QTYKG" HeaderText="QTY\nKG" SortExpression="QTYKG" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="20px" />
                </asp:BoundField>
                <asp:BoundField DataField="AMTRMB" HeaderText="AMT RMB" SortExpression="AMTRMB" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="15px" />
                </asp:BoundField>
                <asp:BoundField DataField="$COLLECTDATE" HeaderText="$COLLECT DATE" SortExpression="$COLLECTDATE" DataFormatString="{0:yyyy-mm-dd}" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="DELIVERYDATE" HeaderText="DELIVERY DATE" SortExpression="DELIVERYDATE" DataFormatString="{0:yyyy-mm-dd}" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="25px" />
                </asp:BoundField>
                <asp:BoundField DataField="DONE" HeaderText="DONE" SortExpression="DONE" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
                <asp:BoundField DataField="SALESCHR" HeaderText="SALES CHR" SortExpression="SALESCHR" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="25px" />
                </asp:BoundField>
                <asp:BoundField DataField="SALESDEV" HeaderText="SALES DEV" SortExpression="SALESDEV" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" Width="25px" />
                </asp:BoundField>
                <asp:BoundField DataField="REMARK" HeaderText="REMARK" SortExpression="REMARK" >
                <HeaderStyle BackColor="Black" BorderColor="White" BorderWidth="1px" />
                </asp:BoundField>
            </Columns>
            <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <HeaderStyle CssClass="DataGridFixedHeader" BackColor="Transparent" BorderStyle="Inset" ForeColor="Silver" BorderColor="Black" BorderWidth="1px" />
        </asp:GridView>
    </div>
    </div>
        </form>
    </body>
    </html>
      

  2.   

    有登入界面了。这个是登入以后显示的页面。现在的问题是除了自己的电脑以外。其他的电脑登入到这个界面只能看见导航而看不见GridView1里的数据。我把<div id="Layer1">删除了以后就可以看见了。
      

  3.   

    但是我看源码有数据。所以估计是<div id="Layer1">的样式没写好。