admin/userinfo.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class admin_manageuser : System.Web.UI.Page
{
    static int userid = -1;
    myuser lxh = new myuser();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] != null)
        {
            userid = Int32.Parse(Session["userid"].ToString());
        }
        if (!Page.IsPostBack)
        {
            bindgridview();
        }
    }
    //绑定控件
    private void bindgridview()
    {
        lxh.mypath = Server.MapPath("~");
        lxh.guestinfo(userid, GridView1);
    }




    protected void Button2_Click(object sender, EventArgs e)
    {
        lxh.mypath = Server.MapPath("~");
        foreach (GridViewRow row in GridView1.Rows)
        {
            CheckBox cbx = (CheckBox)row.FindControl("CheckBox1");
            TextBox tbuserpass = (TextBox)row.FindControl("txtuserpass");
            TextBox tbrealname = (TextBox)row.FindControl("txtrealname");
            TextBox tblxdh = (TextBox)row.FindControl("txtlxdh");
            TextBox tbemail = (TextBox)row.FindControl("txtemail");
            TextBox tblxdz = (TextBox)row.FindControl("txtlxdz");
            TextBox tbpostcode = (TextBox)row.FindControl("txtpostcode");
            int guestid = Int32.Parse(GridView1.DataKeys[row.RowIndex].Value.ToString());
            if (cbx != null)
            {
                if (cbx.Checked == true)
                {
                    string userpass = tbuserpass.Text.Trim().ToString();
                    string realname = tbrealname.Text.Trim().ToString();
                    string lxdh = tblxdh.Text.Trim().ToString();
                    string email = tbemail.Text.Trim().ToString();
                    string lxdz = tblxdz.Text.Trim().ToString();
                    string postcode = tbpostcode.Text.Trim().ToString();
                    if (userpass.Length < 1 || realname.Length < 1 || lxdh.Length < 1)
后面还有 11 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。