Admin/kefangyuyue.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Admin_kefangyuyue : System.Web.UI.Page
{
    SqlHelper insert = new SqlHelper();
    Alert js = new Alert();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            jiage();
        }
    }
    private void jiage() 
    {
        string strsql = "select * from kefang where bianhao='" + Request.QueryString["bianhao"].ToString() + "'";
        DataSet ds = insert.GetDs(strsql, "ds");
        if (ds.Tables[0].Rows.Count > 0)
        {
            if (this.leixing.Text == "否")
            {
                this.danjia.Text = ds.Tables[0].Rows[0]["danjia"].ToString();
            }
            else
            {
                this.danjia.Text = ds.Tables[0].Rows[0]["huiyuanjia"].ToString();          
            }
        }
    }
    protected void leixing_SelectedIndexChanged(object sender, EventArgs e)
    {
        jiage();
        this.TextBox1.Text = "";
        this.xingming.Text = "";
        this.dianhua.Text = "";
        this.shenfenzheng.Text = "";
        if (this.leixing.Text == "是")
        {
            bianhao.Visible = true;
            this.TextBox1.Visible = true;
            this.xingming.Enabled = false;
            this.dianhua.Enabled = false;
            this.shenfenzheng.Enabled = false;
        }
        else 
        {
            bianhao.Visible = false;
            this.TextBox1.Visible = false;
            this.xingming.Enabled = true;
            this.dianhua.Enabled = true;
            this.shenfenzheng.Enabled = true;
        }
    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
后面还有 29 行代码,购买后查看完整代码

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

AI 解读 AI

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

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