Backup/程序/supply-display.aspx.cs

(开头部分) 9KB

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

using System;
using System.Data;
using System.Data.SqlClient;
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 supply_display : System.Web.UI.Page
{
    #region 初始化
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["id"] != null)
            {
                //try
                //{
                    int id = Convert.ToInt32(Request.QueryString["id"]);
                    string sql = "select count(*) from product where pro_id=" + id;
                    int count = Convert.ToInt32(CommonLib.SqlHelper.ExecuteScalar(CommonLib.SqlHelper.SqlConnectionString, CommandType.Text, sql, null));
                    if (count > 0)
                    {
                        Bind();
                    }
                   
                //}
                //catch
                //{
                //    Response.Redirect("404error.htm?error=" + Request.RawUrl.Split('?')[0]);
                //}
            }
        }
    }
    #endregion

    #region 绑定页面
    private void Bind()
    {
        string con = CommonLib.SqlHelper.SqlConnectionString;
        //#region 绑定左侧
        //string sql = "select pro_title from product where pro_id=" + Request.QueryString["id"];
        //string name = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
        //Label1.Text = CommonLib.CutString.CutWithSubstring(name, 5);
        //Label1.ToolTip = name;
        //sql = "select pro_cls_id from product where pro_id=" + Request.QueryString["id"];
        //string clsid = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
        //sql = "select pro_cls_name from pro_cls where pro_cls_id=" + clsid;
        //name = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
        //HyperLink2.Text = name + " > ";
        //HyperLink2.NavigateUrl = "supply.aspx?t=" + clsid;
        //sql = "select pro_cls_pid from pro_cls where pro_cls_id=" + clsid;
        //clsid = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
        //sql = "select pro_cls_name from pro_cls where pro_cls_id=" + clsid;
        //name = CommonLib.SqlHelper.ExecuteScalar(con, CommandType.Text, sql, null).ToString();
后面还有 161 行代码,购买后查看完整代码

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

AI 解读 AI

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

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