| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1922 人关注过本帖
标题:编完的代码在网页上显示不全怎么回事
只看楼主 加入收藏
xinxin3866
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-4-13
结帖率:0
收藏
已结贴  问题点数:20 回复次数:3 
编完的代码在网页上显示不全怎么回事
代码如下:
  <td class="manageHead">
              当前位置:管理系统帐号
          </td></tr>
        <tr>
          <td align="left">
              <asp:GridView ID="GvInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                  BackColor="White" CellPadding="5" DataKeyNames="id" OnPageIndexChanging="GvInfo_PageIndexChanging"
                  OnRowDataBound="GvInfo_RowDataBound" OnRowDeleting="GvInfo_RowDeleting" Width="100%">
                  <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                      NextPageText="下一页" PageButtonCount="12" PreviousPageText="上一页" />
                  <RowStyle HorizontalAlign="Left" />
                  <Columns>
                      <asp:TemplateField HeaderText="帐号">
                          <ItemTemplate>
                              <asp:Label ID="UserName" runat="server" Text='<%# Bind("UserName") %>' Width="69px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="密码">
                          <ItemTemplate>
                              <asp:Label ID="UserPwd" runat="server" Text='<%# Bind("UserPwd") %>' Width="84px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                     
                      <asp:TemplateField HeaderText="用户角色">
                          <ItemTemplate>
                              <asp:Label ID="Roule" runat="server" Text='<%# Bind("Roule") %>' Width="84px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="修改">
                          <ItemTemplate>
                              <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "ModifyAdmin.aspx?id="+Eval("id") %>'
                                  Text="修改" Width="75px"></asp:HyperLink>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Center" Width="30px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="删除" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                  Text="删除" Width="46px"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                  </Columns>
                  <PagerTemplate>
                      <table border="0" width="100%">
                          <tr>
                              <td>
                                  <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                      CommandName="Page" Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页 </asp:LinkButton>
                                             
                                  <asp:Label ID="LabelPageCount" runat="server" Text=" <%# ((GridView)Container.NamingContainer).PageCount %>"> </asp:Label>页
                                             
                                  <asp:Label ID="Label2" runat="server" Text=" <%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"> </asp:Label>页
                              </td>
                              <td align="right" width="20%">
                              </td>
                          </tr>
                      </table>
                  </PagerTemplate>
                  <HeaderStyle BackColor="#F6F6F6" />
              </asp:GridView>
              <asp:Label ID="Label4" runat="server" ForeColor="Red"></asp:Label></td></tr></table>
      </td>
    <td width="15" background="Images/new_023.jpg" style="height: 61px"><img  alt="图片无法显示时显示文字"
      src="Images/new_023.jpg" border="0"/> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
  <tbody>
  <tr>
    <td width="15" style="height: 15px"><img src="Images/new_024.jpg" border="0"  alt="图片无法显示时显示文字" /></td>
    <td valign="middle" width="100%" background="Images/new_025.jpg" style="height: 15px"></td>
    <td width="15" style="height: 15px"><img src="Images/new_026.jpg"  alt="图片无法显示时显示文字"  
  border="0"/></td></tr></tbody></table>
</form>
</body>
</html>
  <td class="manageHead">
              当前位置:管理系统帐号
          </td></tr>
        <tr>
          <td align="left">
              <asp:GridView ID="GvInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                  BackColor="White" CellPadding="5" DataKeyNames="id" OnPageIndexChanging="GvInfo_PageIndexChanging"
                  OnRowDataBound="GvInfo_RowDataBound" OnRowDeleting="GvInfo_RowDeleting" Width="100%">
                  <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                      NextPageText="下一页" PageButtonCount="12" PreviousPageText="上一页" />
                  <RowStyle HorizontalAlign="Left" />
                  <Columns>
                      <asp:TemplateField HeaderText="帐号">
                          <ItemTemplate>
                              <asp:Label ID="UserName" runat="server" Text='<%# Bind("UserName") %>' Width="69px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="密码">
                          <ItemTemplate>
                              <asp:Label ID="UserPwd" runat="server" Text='<%# Bind("UserPwd") %>' Width="84px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                     
                      <asp:TemplateField HeaderText="用户角色">
                          <ItemTemplate>
                              <asp:Label ID="Roule" runat="server" Text='<%# Bind("Roule") %>' Width="84px"></asp:Label>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Left" Width="80px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="修改">
                          <ItemTemplate>
                              <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "ModifyAdmin.aspx?id="+Eval("id") %>'
                                  Text="修改" Width="75px"></asp:HyperLink>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Center" Width="30px" />
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="删除" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                  Text="删除" Width="46px"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                  </Columns>
                  <PagerTemplate>
                      <table border="0" width="100%">
                          <tr>
                              <td>
                                  <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                      CommandName="Page" Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页 </asp:LinkButton>
                                  <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                      Visible=" <%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页 </asp:LinkButton>
                                             
                                  <asp:Label ID="LabelPageCount" runat="server" Text=" <%# ((GridView)Container.NamingContainer).PageCount %>"> </asp:Label>页
                                             
                                  <asp:Label ID="Label2" runat="server" Text=" <%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"> </asp:Label>页
                              </td>
                              <td align="right" width="20%">
                              </td>
                          </tr>
                      </table>
                  </PagerTemplate>
                  <HeaderStyle BackColor="#F6F6F6" />
              </asp:GridView>
              <asp:Label ID="Label4" runat="server" ForeColor="Red"></asp:Label></td></tr></table>
      </td>
    <td width="15" background="Images/new_023.jpg" style="height: 61px"><img  alt="图片无法显示时显示文字"
      src="Images/new_023.jpg" border="0"/> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
  <tbody>
  <tr>
    <td width="15" style="height: 15px"><img src="Images/new_024.jpg" border="0"  alt="图片无法显示时显示文字" /></td>
    <td valign="middle" width="100%" background="Images/new_025.jpg" style="height: 15px"></td>
    <td width="15" style="height: 15px"><img src="Images/new_026.jpg"  alt="图片无法显示时显示文字"  
  border="0"/></td></tr></tbody></table>
</form>
</body>
</html>
为什么网页上什么都不显示,添加、删除什么的都没有
搜索更多相关主题的帖子: 网页 False server 管理系统 
2015-04-13 10:11
yms123
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:10 
LZ最好截图来看看哪里显示不全
2015-04-19 20:36
林月儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:湖南
等 级:版主
威 望:138
帖 子:2277
专家分:10647
注 册:2015-3-19
收藏
得分:10 
网页上什么都不显示,添加、删除什么的都没有,标签都没成对出现,是不是漏掉了什么

剑栈风樯各苦辛,别时冰雪到时春
2015-04-20 18:10
冰镇柠檬汁儿
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:北京
等 级:版主
威 望:120
帖 子:8078
专家分:6657
注 册:2005-11-7
收藏
得分:0 
楼主是把代码复制了两遍吗,怎么页面中间位置会出现
</form>
 </body>
 </html>
你这是让浏览器抓狂的节奏啊

本来无一物,何处惹尘埃
It is empty at all here, Why pm 2.5 is so TMD high!
2015-04-28 09:02
快速回复:编完的代码在网页上显示不全怎么回事
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015050 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved