Web/web/bbs.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace School_Web.web
{
using School_BLL;
using System;
using System.Data;
using System.Runtime.CompilerServices;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Wuqi.Webdiyer;
public class bbs : Page
{
protected DataList DataList1;
protected foot foot1;
protected HtmlForm form1;
protected left left1;
protected AspNetPager Pager;
public SkyTools res = new SkyTools();
public string sSQL = "";
protected top top1;
[MethodImpl(MethodImplOptions.NoInlining)]
protected void BindRepeater()
{
this.SkyBindSQL();
DataTable table = this.res.SkyDataTablePage(this.sSQL, this.Pager.CurrentPageIndex,this.Pager.PageSize);
this.DataList1.DataSource = table;
this.DataList1.DataBind();
}
[MethodImpl(MethodImplOptions.NoInlining)]
protected void Page_Load(object sender, EventArgs p1)
{
if (!this.Page.IsPostBack)
{
this.SkyBindCount();
this.BindRepeater();
}
}
[MethodImpl(MethodImplOptions.NoInlining)]
protected void Pager_PageChanged(object sender, EventArgs p1)
{
this.BindRepeater();
}
[MethodImpl(MethodImplOptions.NoInlining)]
public void SkyBindCount()
{
this.SkyBindSQL();
int num = Convert.ToInt32(this.res.SkyGetSQLCount(this.sSQL));
this.Pager.RecordCount=num;
}
[MethodImpl(MethodImplOptions.NoInlining)]
public void SkyBindSQL()
{
this.sSQL = "select * from SkyWebBBS where 1=1 and BisShow='0'";
this.sSQL = this.sSQL + " order by id Desc";
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
