Admin/LybManager.aspx.cs
(完整代码) 1KBusing 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;
public partial class Admin_LybManager : System.Web.UI.Page
{
public int RowNo = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind();
}
}
private void Bind()
{
Hr.component.lybb lb = new Hr.component.lybb();
DataSet ds = lb.GetLyb();
this.DataGrid1.DataSource = ds.Tables[0].DefaultView;
this.DataGrid1.DataBind();
}
protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
Bind();
}
protected void DataGrid1_DeleteCommand(object source, DataGridCommandEventArgs e)
{
try
{
int companyID = Convert.ToInt32(e.Item.Cells[0].Text);
Hr.component.lybb lb = new Hr.component.lybb();
lb.Delete(companyID);
//Hr.component.Company.Delete(companyID);
Response.Redirect("LybManager.aspx");
}
catch
{
lblInfo.Text = "删除失败!";
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。