Index.aspx.cs

(开头部分) 11KB

这里只显示每个文件的开头 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;

public partial class Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            this.BindFLXX();
            this.BindSPXX();
            this.BindSPCount();

            if (Session["UserID"] != null)
            {
                Panel2.Visible = false;
                Panel3.Visible = true;
                username.Text = Session["UserName"].ToString();
            }
        }
    }

    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //判断登陆人员的密码和用户是不是正确
        if (txtusername.Text.Trim().ToLower() == "administrator")
        {
            DataTable tmpda = new DataTable();
            tmpda = DataBase.Get_Table("select * from 网店 where 帐号='" + this.txtusername.Text.Trim() + "' and 密码='" + this.txtpassword.Text.Trim() + "'");
            if (tmpda.Rows.Count <= 0)
            {
                Response.Write("<script>alert('用户或密码错误');window.location.href='index.aspx';</script>");
                return;
            }
            else
            {
                Session["PersonType"] = "管理员";
                Session["UserName"] = "系统管理员";
                Response.Redirect("Admin/AdminMain.aspx");
            }
        }
        else
        {
            DataTable tmpda = new DataTable();
            tmpda = DataBase.Get_Table("select * from 会员 where 帐号='" + this.txtusername.Text.Trim() + "' and 密码='" + this.txtpassword.Text.Trim() + "'");
            if (tmpda.Rows.Count <= 0)
            {
                Response.Write("<script>alert('用户或密码错误');window.location.href='index.aspx';</script>");
                return;
            }
            else
            {
后面还有 217 行代码,购买后查看完整代码

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

AI 解读 AI

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

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