项目控制知识与实践指南 ASP.NET项目开发指南:客户信息查询(1)[1]
ASP.NET项目开发指南:客户信息查询(1)[1]
客户信息和经营状况信息的查询
客户信息查询( )
信息的查询分为客户信息查询和房间的经营状况查询 在管理员界面中单击 客户信息查询 超链接 将进入客户信息查询页面ST_CustomersMan aspx 如图 所示
图 客户信息查询页面
ST_CustomersMan aspx的主要代码
ST_CustomersMan aspx的全部HTML代码参见配书光盘 在此重点关注控件<Module:CustomersMan id= ModuleCustomerMan runat= server /> ST_CustomersManModule ascx的HTML代码如程序 所示
程序 ST_CustomersManModule ascx
<TABLE cellSpacing= cellPadding= width= % >
<TR class= rheader >
<TD class= rheadercol align= left colSpan= height= >
客户信息查询
</TD>
</TR> <! SPACER ROW >
<TR class= rbody >
<TD class= rbodycol colSpan= >按日期
<FONT color= #ff >从
<asp:dropdownlist id= YearFromList runat= server >
<asp:ListItem Value=
Selected= True > </asp:ListItem>
<asp:ListItem Value= > </asp:ListItem>
… …
<asp:ListItem Value= > </asp:ListItem>
</asp:dropdownlist></FONT>年
<asp:dropdownlist id= MouthFromList runat= server >
<asp:ListItem Value= > </asp:ListItem>
… …
<asp:ListItem Value= > </asp:ListItem>
</asp:dropdownlist>月
<asp:dropdownlist id= DayFromList runat= server >
<asp:ListItem Value= > </asp:ListItem>
… …
<asp:ListItem Value= > </asp:ListItem>
</asp:dropdownlist>日<FONT color= #ff > 至
<asp:dropdownlist id= YearToList runat= server >
<asp:ListItem Value= > </asp:ListItem>
![项目控制知识与实践指南 ASP.NET项目开发指南:客户信息查询(1)[1]](http://img.zhputi.com/uploads/b4de/b4de57c3ee0d12b56cc4ed86df45f34235693.jpg)
… …
<asp:ListItem Value= > </asp:ListItem>
<asp:ListItem Value=
Selected= True > </asp:ListItem>
</asp:dropdownlist></FONT>年
<! 下拉列表框用来显示月份 >
<asp:dropdownlist id= MouthToList runat= server >
<asp:ListItem Value= > </asp:ListItem>
… …
<asp:ListItem Value=
Selected= True > </asp:ListItem>
</asp:dropdownlist>月
<asp:dropdownlist id= DayToList runat= server >
<asp:ListItem Value= > </asp:ListItem>
… …
<asp:ListItem Value=
Selected= True > </asp:ListItem>
</asp:dropdownlist>日</TD>
</TR>
…
【代码说明】上述代码构建了按日期查找的控件 在 经营状况统计 页面中也将用到这段代码
技巧 可以直接在HTML源代码中写入固定的月份值 也可以在后台通过循环动态生成月份值
lishixinzhi/Article/program/net/201311/15966