Web/admin/SelectGroup.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Seven.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web.admin
{
public partial class SelectGroup : ManageBasePage
{
BLL.groupbuy bll = new BLL.groupbuy();
int CurPage = 1;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MODEL.session_manage managemodel = new MODEL.session_manage();
managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;
if (managemodel == null)
{
Response.Redirect("~/admin/Login.aspx");
}
else
{
if (managemodel.classid == 1)
{ }
else
{
Response.Redirect("~/admin/main.aspx");
}
}
Bind();
}
}
private void Bind()
{
string strWhere = " 1=1 ";
string strkeyword = Request["keyword"];
if (!string.IsNullOrEmpty(strkeyword))
strWhere += " and ( name_cn '%" + strkeyword + "%' or details '%" + strkeyword + "%' ";
PagedDataSource objPds = new PagedDataSource();
objPds.PageSize = 10;
objPds.DataSource = bll.GetGroupList(strWhere).Tables[0].DefaultView;
objPds.AllowPaging = true;
lblPageCount.Text = objPds.PageCount.ToString();
if (Request.QueryString["Page"] != null)
CurPage = Convert.ToInt32(Request.QueryString["Page"]);
else
CurPage = 1;
objPds.CurrentPageIndex = CurPage - 1;
lblPage.Text = CurPage.ToString();
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
