qtleft.ascx.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;

public partial class qtleft : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] != null && Session["userip"] != null)
        {
            Panel2.Visible = true;
            Panel1.Visible = false;
        }
        else
        {
            Panel1.Visible = true;
            Panel2.Visible = false;
        }
        if (!IsPostBack)
        {
            cx.Items.Add("注册用户");
            //cx.Items.Add("公司");
        }
        string sql;
        sql = "select top 8 * from youqinglianjie order by id desc";
        getdata4(sql);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string sql;
        //if (cx.Text.ToString().Trim() == "毕业生")
        //{
            sql = "select * from yonghuzhuce where yonghuming='" + TextBox1.Text.ToString().Trim() + "' and mima='" + TextBox2.Text.ToString().Trim() + "' and issh='是' ";
        //}
        //else
        //{
        //    sql = "select * from gongsi where yonghuming='" + TextBox1.Text.ToString().Trim() + "' and mima='" + TextBox2.Text.ToString().Trim() + "' and issh='是' ";
        //}
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                Session["username"] = TextBox1.Text.ToString().Trim();
                Session["cx"] = cx.Text.ToString().Trim();
                Session["userxm"] = result.Tables[0].Rows[0]["xingming"].ToString().Trim();
                //if (cx.Text.ToString().Trim() == "公司")
                //{
                //    Session["gsmc"] = result.Tables[0].Rows[0]["gongsimingcheng"].ToString().Trim();
                //}
                //else
                //{
后面还有 44 行代码,购买后查看完整代码

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

AI 解读 AI

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

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