SysManage/CommentManage.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
using System.Data.OleDb;
public partial class SysManage_CommentManage : System.Web.UI.Page
{
//列表SQL
public string sqltxt = "select * from [Comment] order by CommentId desc";
//总数SQL
public string cmdtxt2 = "select count(0) from [Comment]";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
sqltxt = "select * from [Comment] order by CommentId desc";
cmdtxt2 = "select count(0) from [Comment]";
Get_Pager_Data();
}
}
/// <summary>
/// 获取记录总数
/// </summary>
void Get_Pager_Data()
{
Get_Data();
}
/// <summary>
/// 绑定数据
/// </summary>
void Get_Data()
{
this.rptList.DataSource = DB.getDataTable(sqltxt);
this.rptList.DataBind();
}
/// <summary>
/// 分页事件
/// </summary>
/// <param name="src"></param>
/// <param name="e"></param>
protected void AspNetPager1_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e)
{
AspNetPager1.CurrentPageIndex = e.NewPageIndex;
Get_Data();
}
后面还有 101 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
