private void ShowInfo(string CommodityFatherID) { Maticsoft.BLL.CommodityFather bll = new Maticsoft.BLL.CommodityFather(); Maticsoft.Model.CommodityFather model = bll.GetModel(CommodityFatherID); this.lblCommodityFatherID.Text = model.CommodityFatherID; this.lblCommodityFatherName.Text = model.CommodityFatherName; }
protected void Page_Load(object sender, EventArgs e) { if (UsersInfo.UserID == "") { Response.Write("<script> alert('请先登录!'); window.location.href='/BackLogin.aspx' </script>"); return; } if (!IsPostBack) { if (Request.QueryString["ID"] != null) { Maticsoft.Model.CommodityFather modelnew = CommodityFather_BLL.GetModel(Request.QueryString["ID"].ToString()); //引用id所在行的数据 RadTextBox1.Text = modelnew.CommodityFatherName; //添加数据 } } }