stat/Mast_WebLists.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Generic;
namespace jjCounter
{
/// <summary>
/// 站点列表
/// </summary>
public partial class Admin_Mast_WebLists : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Stat.BLL.FPower.chkMasterLogin();
GetWebList();//列表
}
/// <summary>
/// 站点列表
/// </summary>
private void GetWebList()
{
FillToGvWebList();
}
/// <summary>
/// 分页
/// </summary>
/// <param name="dt"></param>
protected void FillToGvWebList()
{
int _CPage = Stat.BLL.FPublic.Rq_Int("page");
_CPage = _CPage < 1 ? 1 : _CPage;
int _CPageSize = 15;
string _sql = "SELECT * FROM [Stat_WebSites]";
string _Where = "1=1";
if (this.txtW.Text != "")
{
_Where = "WebName like '%" + this.txtW.Text + "%' or WebUrl like '%" + this.txtW.Text + "%'";
_sql += " where " + _Where;
}
this.gvWebList.DataSource = Stat.BLL.BWebsitePageIndex.GetList(_sql, _CPage, _CPageSize);
this.gvWebList.DataKeyNames = new string[] { "WebId" };
this.gvWebList.DataBind();
this.PageIndex.Text = Stat.BLL.BWebsitePageIndex.GetIndex("", "Stat_WebSites", _Where, _CPage, _CPageSize, 0, 1);
}
/// <summary>
/// 绑定行事件
/// </summary>
protected void gvWebList_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex >= 0)
{
//给行加属性
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#66FF66';");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='';");
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
