SiteAdmin/Aspx/LinkManage.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class SiteAdmin_Aspx_LinkManage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["roleid"] != null)
{
if (!IsPostBack)
{
binddr();
}
}
else
{
MessageBox.ShowAndRedirect(this.Page, "对不起!您还没有登录系统。", "../Logout.aspx");
}
}
//绑定记录
public void binddr()
{
Link myn = new Link();
string sqlstr = "1=1 ";
sqlstr = sqlstr + " order by lid desc ";
DataView dv = myn.GetList(sqlstr).Tables[0].DefaultView;
PagedDataSource pds = new PagedDataSource();
AspNetPager1.RecordCount = dv.Count;
pds.DataSource = dv;
pds.AllowPaging = true;
pds.CurrentPageIndex = AspNetPager1.CurrentPageIndex - 1;
pds.PageSize = AspNetPager1.PageSize;
myrepeater.DataSource = pds;
myrepeater.DataBind();
}
protected void Button_Del_Click(object sender, EventArgs e)
{
string id = hidden.Value;
string[] Arrayid = id.Split(',');
for (int i = 0; i < ((Arrayid.Length) - 1); i++)
{
Link myn = new Link();
myn.Delete(Convert.ToInt16(Arrayid[i]));
}
binddr();
}
public string FShow(object article)
{
int caId = Convert.ToInt16(article.ToString());
string Show = "显示";
if (caId == 0)
{
后面还有 11 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。