91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

最近根據其它項目整合的一個在線用戶列表和在線用戶統計...在線用戶列表顯示有分頁功能..可以區分關閉瀏覽器的的退出方式..

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Collections;

namespace?WebApplication1
{
????public?partial?class?Default1?:?System.Web.UI.Page
????{
????????protected?string?strTable?=?““;
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????//////LJL20131125star
????????????if?(!IsPostBack)
????????????{
????????????????Bind(this.AspNetPager1.CurrentPageIndex);
????????????}
????????}
????????//獲取當前單元格
????????public?string?ReturnTr(string?str)
????????{
????????????string?tr?=?““;
????????????foreach?(string?item?in?str.Split(‘‘))
????????????{
????????????????tr?+=?““?+?item?+?““;
????????????}
????????????return?tr;

????????}
????????//List分頁
????????public?ArrayList?ToPageList(ArrayList?flightList?int?perPageNum?int?pageNum)
????????{

????????????int?pageCount?=?0;
????????????if?(flightList.Count?%?perPageNum?==?0)
????????????{
????????????????pageCount?=?flightList.Count?/?perPageNum;
????????????}
????????????else
????????????{
????????????????pageCount?=?(flightList.Count?/?perPageNum)?+?1;
????????????}
????????????//超過總頁數置為最后一頁
????????????if?(pageNum?>?pageCount)
????????????{
????????????????pageNum?=?pageCount;
????????????}

????????????//計算需要顯示的結果數據
????????????ArrayList?flightPageList?=?new?ArrayList();
????????????for?(int?i?=?((pageNum?-?1)?*?perPageNum);?i??0;?i++)
????????????{
????????????????flightPageList.Add(flightList[i]);
????????????}
????????????return?flightPageList;
????????}
????????private?void?Bind(int?index)
????????{
????????????ArrayList?li?=?Application.Get(“Global_User_List“)?as?ArrayList;
????????????if?(this.AspNetPager1.CurrentPageIndex?-?1?!=?index)
????????????{
????????????????this.AspNetPager1.CurrentPageIndex?=?this.AspNetPager1.CurrentPageIndex?-?1;
????????????}
????????????this.AspNetPager1.RecordCount?=?li.Count;
????????????ArrayList?list?=?ToPageList(li?this.AspNetPager1.PageSize?this.AspNetPager1.CurrentPageIndex);
????????????string?str?=?““;
????????????str?+=?“登陸賬號登陸密碼“;
????????????if?(list?!=?null)
????????????{
????????????????foreach?(string?item?in?list)
????????????????{
????????????????????str?+=?““?+?ReturnTr(item)?+?““;
????????????????}
????????????????str?+=?““;

????????????}
????????????strTable?=?str;
????????????Response.Write(“在線總人數?:“?+?li.Count?+?“
“);

????????}
????????/////LJL20131125end
????????protected?void?AspNetPager1_PageChanged(object?sender?EventArgs?e)
????????{
????????????Bind(this.AspNetPager1.CurrentPageIndex?-?1);
????????}
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-11-27?16:40??WebSite6\
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\
?????目錄???????????0??2013-11-27?17:10??WebSite6\WebApplication1\WebApplication1\
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\App_Data\
?????目錄???????????0??2013-11-27?17:05??WebSite6\WebApplication1\WebApplication1\bin\
?????文件???????61440??2012-09-20?11:19??WebSite6\WebApplication1\WebApplication1\bin\aspnetpager.dll
?????文件????????7680??2013-11-27?17:06??WebSite6\WebApplication1\WebApplication1\bin\WebApplication1.dll
?????文件???????22016??2013-11-27?17:06??WebSite6\WebApplication1\WebApplication1\bin\WebApplication1.pdb
?????文件????????2549??2013-11-27?17:10??WebSite6\WebApplication1\WebApplication1\Default1.aspx
?????文件????????2995??2013-11-27?17:02??WebSite6\WebApplication1\WebApplication1\Default1.aspx.cs
?????文件????????1186??2013-11-27?17:00??WebSite6\WebApplication1\WebApplication1\Default1.aspx.designer.cs
?????文件??????????99??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\Global.asax
?????文件????????1808??2013-11-27?16:52??WebSite6\WebApplication1\WebApplication1\Global.asax.cs
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\obj\
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\obj\Debug\
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\obj\Debug\TempPE\
?????目錄???????????0??2013-11-27?17:06??WebSite6\WebApplication1\WebApplication1\obj\Release\
?????文件????????5041??2013-11-27?17:02??WebSite6\WebApplication1\WebApplication1\obj\Release\ResolveAssemblyReference.cache
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\obj\Release\TempPE\
?????文件?????????445??2013-11-27?17:05??WebSite6\WebApplication1\WebApplication1\obj\Release\WebApplication1.csproj.FileListAbsolute.txt
?????文件????????7680??2013-11-27?17:06??WebSite6\WebApplication1\WebApplication1\obj\Release\WebApplication1.dll
?????文件???????22016??2013-11-27?17:06??WebSite6\WebApplication1\WebApplication1\obj\Release\WebApplication1.pdb
?????目錄???????????0??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\Properties\
?????文件????????1317??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\Properties\AssemblyInfo.cs
?????文件?????????372??2013-11-27?16:48??WebSite6\WebApplication1\WebApplication1\session_test.js
?????文件?????????453??2013-11-27?16:49??WebSite6\WebApplication1\WebApplication1\test.aspx
?????文件?????????492??2013-11-27?16:48??WebSite6\WebApplication1\WebApplication1\test.aspx.cs
?????文件????????7822??2013-11-27?16:40??WebSite6\WebApplication1\WebApplication1\Web.config
?????文件????????4983??2013-11-27?17:05??WebSite6\WebApplication1\WebApplication1\WebApplication1.csproj
?????文件????????1297??2013-11-27?17:05??WebSite6\WebApplication1\WebApplication1\WebApplication1.csproj.user
?????文件????????1357??2013-11-27?17:10??WebSite6\WebApplication1\WebApplication1\WebForm1.aspx
............此處省略4個文件信息

評論

共有 條評論