ADDxiao.aspx.cs

(开头部分) 5KB

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

public partial class ADDxiao : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
           
            SqlData da = new SqlData();
            string id = Request.QueryString["id"];
            if (Session["username"] != null && Session["username"].ToString() != string.Empty)
            {
                this.user.Text = Session["username"].ToString();
                if (id != null && id.ToString() != string.Empty)
                {
                    this.botton2.Visible = false;
                    this.user.Text = Session["username"].ToString();
                    string sqlstr = "select * from gy_xiao where gy_xiaoID=" + id + " ";

                    SqlDataReader read = da.ExceRead(sqlstr);
                    read.Read();
                    if (read.HasRows)
                    {
                        this.time.Text = read["gy_x_time"].ToString();
                        this.carno.Text = read["gy_x_carno"].ToString();
                        this.voucher.Text = read["gy_x_voucher"].ToString();
                        this.client.SelectedValue = read["gy_clientID"].ToString();
                        this.amount.Text = read["gy_x_amount"].ToString();
                        this.price.Text = read["gy_x_price"].ToString();
                        this.total.Text = read["gy_x_total"].ToString();
                        this.DropDownList1.SelectedValue = read["jsID"].ToString();
                        this.remark.Text = read["gy_x_remark"].ToString();


                        read.Close();
                    }
                }
                else
                {
                    this.botton3.Visible = false;
                }
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), "click", "alert('您还未登录系统,不能访问此页!请先登录系统。');location='login.aspx'", true);
                return;
            }
        }
    }
后面还有 59 行代码,购买后查看完整代码

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

AI 解读 AI

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

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