nethoutai/MessageManage.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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 CommonLib;
using DBUtility;
using System.Data.SqlClient;
public partial class liveMessage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SqlHelper.BindGridview(GridView2, SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, "select * from T_Message", null);
}
}
protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
{
for (int i = 0; i <= GridView2.Rows.Count - 1; i++)
{
CheckBox cbox = (CheckBox)GridView2.Rows[i].FindControl("CheckBox1");
if (CheckBox2.Checked == true)
{
cbox.Checked = true;
}
else
{
cbox.Checked = false;
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
int i, j;
string TSql;
for (i = 0; i <= GridView2.Rows.Count - 1; i++)
{
CheckBox cbox = (CheckBox)GridView2.Rows[i].FindControl("CheckBox1");
if (cbox.Checked == true) break;
}
for (j = 0; j <= GridView2.Rows.Count - 1; j++)
{
CheckBox cbox = (CheckBox)GridView2.Rows[j].FindControl("CheckBox1");
if (cbox.Checked == true)
{
TSql = "update T_Message set Meno='0' where id='" + cbox.ToolTip.ToString() + "'";
SqlConnection conn = new SqlConnection(SqlHelper.ConnectionStringLocalTransaction);
后面还有 34 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。