コード例 #1
0
 protected string getclassname(int classid)
 {
     if (classid == 0)
     {
         return("");
     }
     else
     {
         return(b_ipOperation.searchClass(classid).class_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();
            }
        }