WmptWap/myChange.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WMPT.SQLServerDAL;
using WMPT.Common;
using WMPT.Model;
namespace Html5
{
public partial class myChange : System.Web.UI.Page
{
private string SqlWhere
{
get
{
return ViewState["where"] == null ? "" : ViewState["where"].ToString();
}
set
{
ViewState["where"] = (object)value;
}
}
Integral dal = new Integral();
protected void Page_Load(object sender, EventArgs e)
{
//UserHelp.IsLogin(Request.Url.PathAndQuery);
ECustomerInfo user = UserHelp.GetUser();
if (user == null)
{
Response.Redirect("~/login.aspx?returnurl=" + Server.UrlEncode(Request.Url.ToString()));
}
if (!this.Page.IsPostBack)
{
SqlWhere = "custid ='" + user.DataID + "'";
BindData();
}
}
//绑定数据
private void BindData()
{
int pagesize = 10;
int pageindex = HjNetHelper.GetQueryInt("PageNo", 1);
string pageurl = "?x=";
this.rptComment.DataSource = dal.GetList(pagesize, pageindex, SqlWhere, "IntegralId", 1);
this.rptComment.DataBind();
//生成页码条
int count = dal.GetCount(SqlWhere);
int pagecount = (count % pagesize == 0 ? count / pagesize : count / pagesize + 1);
if (pagecount > 1)
{
pages.InnerHtml = WebUtility.GetPageString(pageindex, pagecount, pageurl);
}
后面还有 20 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
