min/add_in.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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 min_add_in : System.Web.UI.Page
{
    DataBase db = new DataBase();
    PData pd = new PData();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["ano"] == null)
            {
                Response.Write("<script> javascript:alert('请先登录!'); </script>");
                Response.Redirect("../login.aspx");
            }
            else
            {
                dataBind1();
                dataBind2();
            }
        }
    }
    protected void dataBind1()
    {
        DataSet result = new DataSet();
        result = new DataBase().Getdata("select * from yp");
        if (result != null)
        {
            DropDownList1.DataSource = result.Tables[0].DefaultView;
            DropDownList1.DataTextField = "yname";
            DropDownList1.DataValueField = "yno";
            DropDownList1.DataBind();
        }
    }
    protected void dataBind2()
    {
        DataSet result = new DataSet();
        result = new DataBase().Getdata("select * from ck");
        if (result != null)
        {
            DropDownList2.DataSource = result.Tables[0].DefaultView;
            DropDownList2.DataTextField = "cname";
            DropDownList2.DataValueField = "cno";
            DropDownList2.DataBind();
        }
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        int number = 0;
        if (TextBox1.Text.Trim() == "" || TextBox2.Text.Trim() == "" || TextBox3.Text.Trim() == "" || TextBox4.Text.Trim() == "" || TextBox5.Text.Trim() == "" || TextBox6.Text.Trim() == "")
            Response.Write("<script> javascript:alert('打星号的地方不能为空!'); </script>");
后面还有 45 行代码,购买后查看完整代码

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

AI 解读 AI

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

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