首页 > 编程 > ASP > 正文

DATAGRID的集中功能!!(aspx页)

2024-05-04 11:06:21
字体:
来源:转载
供稿:网友
<%@ page language="c#" codebehind="ygdz_xianlist.aspx.cs" autoeventwireup="false" inherits="ygdzwww.webform1" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
 <head>
  <title>浏览行政县信息</title>
  <meta http-equiv="content-type" content="text/html; charset=gb2312">
  <meta content="microsoft visual studio .net 7.1" name="generator">
  <meta content="c#" name="code_language">
  <meta content="javascript" name="vs_defaultclientscript">
  <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetschema">
 </head>
 <body ms_positioning="gridlayout">
  <form id="form1" method="post" runat="server">
   <asp:datagrid id="datagrid1"
    runat="server" pagesize="6" allowpaging="true" autogeneratecolumns="false" bordercolor="#e7e7ff"
    borderstyle="double" borderwidth="1px" backcolor="white" cellpadding="3" gridlines="horizontal"
    width="376px" datakeyfield="b010101">
    <selecteditemstyle font-bold="true" forecolor="#f7f7f7" backcolor="#738a9c"></selecteditemstyle>
    <alternatingitemstyle backcolor="#f7f7f7"></alternatingitemstyle>
    <itemstyle forecolor="#4a3c8c" backcolor="#e7e7ff"></itemstyle>
    <headerstyle font-bold="true" forecolor="#f7f7f7" backcolor="#4a3c8c"></headerstyle>
    <footerstyle forecolor="#4a3c8c" backcolor="#b5c7de"></footerstyle>
    <columns>
     <asp:templatecolumn headertext="选择">
      <itemtemplate>
       <asp:checkbox id="chk" enabled="true" runat="server" />
      </itemtemplate>
     </asp:templatecolumn>
     <asp:boundcolumn datafield="b010101" visible="false">
      <itemstyle horizontalalign="center"></itemstyle>
     </asp:boundcolumn>
     <asp:templatecolumn headertext="行政县代码">
      <itemtemplate>
       <a href="ygdz_xianedit.aspx?sxiancode=<%#databinder.eval(container.dataitem,"b010101")%>&sxianname=<%#databinder.eval(container.dataitem,"b010102")%>" ><%#databinder.eval(container.dataitem,"b010101")%></a>
      </itemtemplate>
     </asp:templatecolumn>
     <asp:templatecolumn headertext="行政县名称">
      <itemtemplate>
       <a href="ygdz_xianedit.aspx?sxiancode=<%#databinder.eval(container.dataitem,"b010101")%>&sxianname=<%#databinder.eval(container.dataitem,"b010102")%>" ><%#databinder.eval(container.dataitem,"b010102")%></a>
      </itemtemplate>
     </asp:templatecolumn>
     <asp:boundcolumn datafield="b000006" headertext="是否失效">
      <itemstyle horizontalalign="center"></itemstyle>
     </asp:boundcolumn>
    </columns>
    <pagerstyle visible="false" nextpagetext="下一页" prevpagetext="上一页" horizontalalign="right" pagebuttoncount="5"></pagerstyle>
   </asp:datagrid>
   <p></p>
   <asp:label id="label4" runat="server"
    width="248px" font-size="large" forecolor="magenta" height="32px">行政县信息卡</asp:label>
   <table id="table1"
    cellspacing="1" cellpadding="1" width="376" bgcolor="#ccccff" border="1">
    <tbody>
     <tr>
      <td align="right" colspan="3"><font face="宋体"><asp:linkbutton id="pagefirst" runat="server" width="56px" commandargument="pagefirst">第一页</asp:linkbutton><asp:linkbutton id="pagenext" runat="server" width="56px" commandargument="pagenext">下一页</asp:linkbutton><asp:linkbutton id="pagepre" runat="server" width="56px" commandargument="pagepre">上一页</asp:linkbutton><asp:linkbutton id="pagelast" runat="server" width="56px" commandargument="pagelast">末一页</asp:linkbutton></font>&nbsp;&nbsp;&nbsp;&nbsp;<asp:label id="lbpagecount" runat="server">第1页</asp:label></td>
     </tr>
     <font face="宋体"></font>
    </tbody>
   </table>
   <asp:button id="btxianadd"
    runat="server" text="添 加"></asp:button>
   <asp:button id="btxiandelete"
    runat="server" text="删 除"></asp:button>
   <asp:label id="lbxianname"
    runat="server">县名称</asp:label>
   <asp:textbox id="tbxianname"
    runat="server"></asp:textbox>
   <asp:button id="btxiansearch"
    runat="server" text="查 询"></asp:button></form>
 </body>
</html>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表