Asp.net源码专业站
首页->聊天计数->简单网站计数器统(单用户)源码>>StatByMonth.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:简单网站计数器统(单用户)源码
当前文件:文件类型 SimpleWebStat/StatByMonth.aspx[3K,2009-6-12 11:54:10]打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StatByMonth.aspx.cs" Inherits="StatByMonth" %> 2 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5<html xmlns="http://www.w3.org/1999/xhtml" > 6<head runat="server"> 7 <title>网站流量统计===按月统计用户访问量</title> 8 <link rel="Stylesheet" href="ASPNET2.0BaseCss.css" type="text/css" /> 9</head> 10<body> 11 <form id="form1" runat="server"> 12 <table class="GbText" style="BORDER-COLLAPSE: collapse; border-right: #ccccff thin solid; border-top: #ccccff thin solid; border-left: #ccccff thin solid; border-bottom: #ccccff thin solid;" borderColor="#93bee2" cellspacing="0" 13 cellpadding="2" width="100%" border="1"> 14 <tr> 15 <td colspan="2" style="background-color: #6699cc;"><font class="HeaderText">按月统计用户访问量</font></td> 16 </tr> 17 <tr> 18 <td> 19 请选择时间:<asp:DropDownList ID="YearList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="YearList_SelectedIndexChanged"> 20 <asp:ListItem Value="0" Selected="True">2006</asp:ListItem> 21 <asp:ListItem Value="1">2007</asp:ListItem> 22 <asp:ListItem Value="2">2008</asp:ListItem> 23 <asp:ListItem Value="3">2009</asp:ListItem> 24 <asp:ListItem Value="4">2010</asp:ListItem> 25 <asp:ListItem Value="5">2011</asp:ListItem> 26 <asp:ListItem Value="6">2012</asp:ListItem> 27 <asp:ListItem Value="7">2013</asp:ListItem> 28 <asp:ListItem Value="8">2014</asp:ListItem> 29 <asp:ListItem Value="9">2015</asp:ListItem> 30 </asp:DropDownList></td> 31 </tr> 32 <tr> 33 <td colspan="2"> 34 <asp:GridView ID="StatView" runat="server" AutoGenerateColumns="False" Width="100%" CssClass="GbText" ShowFooter="True"> 35 <FooterStyle ForeColor="White" HorizontalAlign="Center" BackColor="#3B6BD1" Font-Bold="True"></FooterStyle> 36 <SelectedRowStyle Font-Bold="True" ForeColor="Navy" BackColor="#FFCC66" BorderColor="CornflowerBlue" /> 37 <RowStyle ForeColor="#333333" BackColor="#FFFBD6" BorderColor="CornflowerBlue" BorderStyle="Solid" BorderWidth="1px" /> 38 <HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" CssClass="GbText" BackColor="#3B6BD1" HorizontalAlign="Left"></HeaderStyle> 39 <Columns> 40 <asp:TemplateField HeaderText="访问时间"> 41 <ItemTemplate> 42 <%# ((VisitStat)Container.DataItem).Name %> 43 </ItemTemplate> 44 <ItemStyle HorizontalAlign="Left" /> 45 <HeaderStyle Width="40%" /> 46 <FooterTemplate> 47 总计: 48 </FooterTemplate> 49 <FooterStyle HorizontalAlign="left" /> 50 </asp:TemplateField> 51 <asp:TemplateField HeaderText="访问次数"> 52 <ItemTemplate> 53 <%# ((VisitStat)Container.DataItem).Number %> 54 </ItemTemplate> 55 <ItemStyle HorizontalAlign="Center" /> 56 <HeaderStyle Width="15%" HorizontalAlign="Center" /> 57 <FooterTemplate> 58 <%=total%> 59 </FooterTemplate> 60 </asp:TemplateField> 61 <asp:TemplateField HeaderText="百分比"> 62 <ItemTemplate> 63 <%# ((VisitStat)Container.DataItem).Percent %>% 64 </ItemTemplate> 65 <ItemStyle HorizontalAlign="Center" /> 66 <HeaderStyle Width="15%" HorizontalAlign="Center" /> 67 </asp:TemplateField> 68 </Columns> 69 <AlternatingRowStyle BorderColor="CornflowerBlue" BackColor="White" BorderStyle="Solid" BorderWidth="1px" /> 70 <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" /> 71 <EditRowStyle BorderColor="CornflowerBlue" BorderWidth="1px" /> 72 </asp:GridView> 73 </td> 74 </tr> 75 </table> 76 </form> 77</body> 78</html> 79
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:简单网站计数器统(单用户)源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146