コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();
            B_Admin badmin = new B_Admin();

            if (!IsPostBack)
            {
                B_IPOperation b_ipoperation = new B_IPOperation();
                DataTable     datatable     = b_ipoperation.searchAllClass();
                class_ID.DataSource = datatable;
                class_ID.DataBind();
                int       IP_ID     = Convert.ToInt32(Request.QueryString["ID"].ToString());
                M_IP_para m_IP_para = b_ipoperation.searchIPByID(IP_ID);
                class_ID.SelectedValue = m_IP_para.class_ID.ToString();
                startIP.Text           = getIP(Convert.ToInt32(m_IP_para.startIP));
                endIp.Text             = getIP(Convert.ToInt32(m_IP_para.endIP));
                pro_name.Text          = m_IP_para.pro_name;
                city_name.Text         = m_IP_para.city_name;
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ZoomLa.Common.function.AccessRulo();
            B_Admin badmin = new B_Admin();

            if (!IsPostBack)
            {
                DataTable datatable = b_IPOperation.searchAllClass();
                leadto_ID.DataSource = datatable;
                leadto_ID.DataBind();
                leadto_ID.Items.Insert(0, new ListItem("最高分类", "0"));
                M_IP_class m_ip_class = new M_IP_class();
                if (Request.QueryString["class_ID"] != null)
                {
                    int n_class_ID = Convert.ToInt32(Request.QueryString["class_ID"].ToString());
                    m_ip_class = b_IPOperation.searchClass(n_class_ID);
                }
                class_ID.Text           = m_ip_class.class_ID.ToString();
                class_name.Text         = m_ip_class.class_name;
                leadto_ID.SelectedValue = m_ip_class.leadto_ID.ToString();
            }
        }