<%@ Page Language="C#" AutoEventWireup="true" CodeFile="读者管理.aspx.cs" Inherits="Admin_读者管理" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd html 4.0 transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css" > 
{
FONT-SIZE: 12px
}
.gridView {
BORDER-RIGHT: #bad6ec 1px; BORDER-TOP: #bad6ec 1px; BORDER-LEFT: #bad6ec 1px; COLOR: #566984; BORDER-BOTTOM: #bad6ec 1px; FONT-FaMILY: Courier New
}
.gridViewheader {
BORDER-RIGHT: #bad6ec 1px solid; BORDER-TOP: #bad6ec 1px solid; BaCKGROUND-IMaGE: url(images/bg_th.gif); BORDER-LEFT: #bad6ec 1px solid; LINE-HEIGHT: 27px; BORDER-BOTTOM: #bad6ec 1px solid
}
.gridViewItem {
BORDER-RIGHT: #bad6ec 1px solid; BORDER-TOP: #bad6ec 1px solid; BORDER-LEFT: #bad6ec 1px solid; LINE-HEIGHT: 32px; BORDER-BOTTOM: #bad6ec 1px solid; TEXT-aLIGN: center
}
.cmdField {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; BaCKGROUND-IMaGE: url(images/bg_rectbtn.png); OVERFLOW: hidden; BORDER-LEFT: 0px; WIDth: 67px; COLOR: #364c6d; LINE-HEIGHT: 27px; BORDER-BOTTOM: 0px; BaCKGROUND-REPEaT: repeat-x; HEIGHT: 27px; BaCKGROUND-COLOR: transparent; TEXT-DECORaTION: none
}
.buttonBlue {
BORDER-RIGHT: 0px; BORDER-TOP: 0px; BaCKGROUND-IMaGE: url(images/bg_button_blue.gif); BORDER-LEFT: 0px; WIDth: 78px; COLOR: white; BORDER-BOTTOM: 0px; BaCKGROUND-REPEaT: no-repeat; HEIGHT: 21px
}
</style>
<meta content="MShtml 6.00.2900.5848" name="GENERaTOR"/>
</head>
<body 
style="BaCKGROUND-POSITION:0, -120px; BaCKGROUND-IMaGE: url(images/bg.gif); BaCKGROUND-REPEaT: repeat-x">
<script type="text/javascript">
//<![CDaTa[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventargument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTaRGET.value = eventTarget;
        theForm.__EVENTaRGUMENT.value = eventargument;
        theForm.submit();
    }
}
//]]>
</script>
<form id="Form1" runat="server" >
<script src="Center.files/WebResource.axd" type="text/javascript"></script>
<script src="Center.files/scriptresource.axd" 
type="text/javascript"></script>
<script 
src="Center.files\scriptresource(1).axd" 
type="text/javascript"></script>
<div>
  <table style="height:100%" cellspacing="0" cellpadding="0" width="100%" border="0">
   <tbody>
      <tr 
  style="BaCKGROUND-IMaGE: url(images/bg_header.gif); BaCKGROUND-REPEaT: repeat-x ;height:47" >
        <td width="10"><span 
      style="FLOaT: left; BaCKGROUND-IMaGE: url(images/main_hl.gif); WIDth: 15px; BaCKGROUND-REPEaT: no-repeat; HEIGHT: 47px"></span></td>
        <td><span 
      style="FLOaT: left; BaCKGROUND-IMaGE: url(images/main_hl2.gif); WIDth: 15px; BaCKGROUND-REPEaT: no-repeat; HEIGHT: 47px"></span><span 
      style="PaDDING-RIGHT: 10px; PaDDING-LEFT: 10px; FLOaT: left; BaCKGROUND-IMaGE: url(images/main_hb.gif); PaDDING-BOTTOM: 10px; COLOR: white; PaDDING-TOP: 10px; BaCKGROUND-REPEaT: repeat-x; HEIGHT: 47px; TEXT-aLIGN: center ">
          读者管理&nbsp;</span><span 
      style="FLOaT: left; BaCKGROUND-IMaGE: url(images/main_hr.gif); WIDth: 60px; BaCKGROUND-REPEaT: no-repeat; HEIGHT: 47px"></span><br />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
            &nbsp;<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
        <td 
    style="BaCKGROUND-POSITION: 50% bottom; BaCKGROUND-IMaGE: url(images/main_rc.gif)" 
    width="10"></td>
      </tr>
      <tr>
        <td style="BaCKGROUND-IMaGE: url(images/main_ls.gif)">&nbsp;</td>
        <td 
    style="PaDDING-RIGHT: 10px; PaDDING-LEFT: 10px; PaDDING-BOTTOM: 10px; COLOR: #566984; PaDDING-TOP: 10px; BaCKGROUND-COLOR: white" 
    valign="top" align="center">
          <div>
    <table align="center"   width="100%" border="0" cellpadding="8" cellspacing="0" style="border-bottom:1px solid #aaaaaa;margin:0px 0px 8px 0px;" >
    <tr> <td  class="style1" >读者账号:
         <asp:textBox id="textBox1" runat="server" 
             height="22px" width="100px"></asp:textBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="检  索" />
&nbsp;</td></tr>
     <tr> <td class="tdborder1a" style="border-width: medium">&nbsp;</td></tr>
     <&nbsp;</td></tr>
    <tr> <td class="tdborder1a">
         <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  AllowPaging="True" 
             DataKeyNames="id" onrowcancelingedit="GridView1_RowCancelingEdit1" 
             onrowdatabound="GridView1_RowDataBound1" onrowdeleting="GridView1_RowDeleting" 
             onrowediting="GridView1_RowEditing" 
             
              style="color: #000000" onrowupdating="GridView1_RowUpdating" 
             onpageindexchanging="GridView1_PageIndexChanging" PageSize="2">
             <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
             <Columns>
                 <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                 <asp:BoundField DataField="name" HeaderText="姓名" ReadOnly="True" />
                 <asp:BoundField DataField="zhanghao" HeaderText="账号" ReadOnly="True" />
                 <asp:TemplateField HeaderText="余额">
                     <EditItemTemplate>
                         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("YuE") %>'></asp:TextBox>
                     </EditItemTemplate>
                     <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("YuE") %>'></asp:Label>
                     </ItemTemplate>
                 </asp:TemplateField>
                 <asp:CommandField ShowEditButton="True" />
                 <asp:CommandField ShowDeleteButton="True" />
             </Columns>
         
         
         <PagerTemplate>    <div style="text-align: center">    <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">首页</asp:LinkButton>     <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">前页</asp:LinkButton>      第<asp:Label ID="lblcurPage" ForeColor="Blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1  %>'></asp:Label>页/共<asp:Label ID="lblPageCount" ForeColor="blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页      <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next" Enabled="<%#((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">后页</asp:LinkButton>    <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"Enabled="<%#((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">尾页</asp:LinkButton>      &nbsp;<asp:TextBox ID="txtGoPage" runat="server" Text='<%#((GridView)Container.Parent.Parent).PageIndex+1 %>' Width="32px"></asp:TextBox>页          <asp:Button  ID="Button3" runat="server" OnClick="Turn_Click" Text="转到" /></div> </PagerTemplate>
      </asp:GridView>
      </td></tr>
     <tr> <td class="tdborder1a">
         &nbsp;</td></tr>
     </table>          </div>
          <table>
           <tr>
        <td style="BaCKGROUND-IMaGE: url(images/main_rs.gif)"></td></tr>
      
      <tr 
style="BaCKGROUND-IMaGE: url(images/main_fs.gif); BaCKGROUND-REPEaT: repeat-x;height:10" >
        <td style="BaCKGROUND-IMaGE: url(images/main_lf.gif)"></td>
        <td style="BaCKGROUND-IMaGE: url(images/main_fs.gif)"></td>
        <td 
style="BaCKGROUND-IMaGE: url(images/main_rf.gif)"></td>
      </tr>
     </table> 
   </tdody>
  </table>
</div>

<script type="text/javascript">
//<![CDaTa[
Sys.application.initialize();
//]]>
</script>
</form>
</body>
</html>ASP

解决方案 »

  1.   

    太乱了 把控件全去掉
    把你的HTML标签放到html文件里看下不久清楚了吗?
      

  2.   

    太乱了
        <div>
            <table style="height: 100%" cellspacing="0" cellpadding="0" width="100%" border="0">
                <tbody>
                    <tr style="background-image: url(images/bg_header.gif); background-repeat: repeat-x;
                        height: 47">
                        <td width="10">
                            <span style="float: left; background-image: url(images/main_hl.gif); width: 15px;
                                background-repeat: no-repeat; height: 47px"></span>
                        </td>
                        <td>
                            <span style="float: left; background-image: url(images/main_hl2.gif); width: 15px;
                                background-repeat: no-repeat; height: 47px"></span><span style="padding-right: 10px;
                                    padding-left: 10px; float: left; background-image: url(images/main_hb.gif); padding-bottom: 10px;
                                    color: white; padding-top: 10px; background-repeat: repeat-x; height: 47px; text-align: center">
                                    读者管理&nbsp;</span><span style="float: left; background-image: url(images/main_hr.gif);
                                        width: 60px; background-repeat: no-repeat; height: 47px"></span><br />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                            &nbsp;<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="background-position: 50% bottom; background-image: url(images/main_rc.gif)"
                            width="10">
                        </td>
                    </tr>
                    <tr>
                        <td style="background-image: url(images/main_ls.gif)">
                            &nbsp;
                        </td>
                        <td style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; color: #566984;
                            padding-top: 10px; background-color: white" valign="top" align="center">
                            <div>
                                <table align="center" width="100%" border="0" cellpadding="8" cellspacing="0" style="border-bottom: 1px solid #aaaaaa;
                                    margin: 0px 0px 8px 0px;">
                                    <tr>
                                        <td class="style1">
                                            读者账号:
                                            <asp:TextBox ID="textBox1" runat="server" Height="22px" Width="100px"></asp:TextBox>
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="检  索" />
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdborder1a" style="border-width: medium">
                                            &nbsp;
                                        </td>
                                    </tr>
                            <&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="tdborder1a">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                DataKeyNames="id" OnRowCancelingEdit="GridView1_RowCancelingEdit1" OnRowDataBound="GridView1_RowDataBound1"
                                OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" Style="color: #000000"
                                OnRowUpdating="GridView1_RowUpdating" OnPageIndexChanging="GridView1_PageIndexChanging"
                                PageSize="2">
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <AlternatingRowStyle BackColor="#F7F7F7" />
                                <Columns>
                                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                                    <asp:BoundField DataField="name" HeaderText="姓名" ReadOnly="True" />
                                    <asp:BoundField DataField="zhanghao" HeaderText="账号" ReadOnly="True" />
                                    <asp:TemplateField HeaderText="余额">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("YuE") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("YuE") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowEditButton="True" />
                                    <asp:CommandField ShowDeleteButton="True" />
                                </Columns>
                                <PagerTemplate>
                                    <div style="text-align: center">
                                        <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">首页</asp:LinkButton>
                                        <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">前页</asp:LinkButton>
                                        第<asp:Label ID="lblcurPage" ForeColor="Blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1  %>'></asp:Label>
                                        页/共<asp:Label ID="lblPageCount" ForeColor="blue" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页
                                        <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
                                            Enabled="<%#((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">后页</asp:LinkButton>
                                        <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                            Enabled="<%#((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">尾页</asp:LinkButton>
                                        &nbsp;<asp:TextBox ID="txtGoPage" runat="server" Text='<%#((GridView)Container.Parent.Parent).PageIndex+1 %>'
                                            Width="32px"></asp:TextBox>页
                                        <asp:Button ID="Button3" runat="server" OnClick="Turn_Click" Text="转到" />
                                    </div>
                                </PagerTemplate>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdborder1a">
                            &nbsp;
                        </td>
                    </tr>
                </tbody>        </table>
        </div>
    这里应该是一对吧
      

  3.   

    谢谢大家,特别是liuchaolin,问题基本上都解决了,受教了