protected void Page_Load(object sender, EventArgs e) { shopid = MyCommFun.RequestInt("shopid"); type = MyCommFun.QueryString("type"); ids = MyCommFun.RequestInt("id"); if (!Page.IsPostBack) { if (type == "edite")//修改 { caipin = caipinbll.GetModel(ids); this.sortid.Text = caipin.sortid.ToString(); this.categoryName.Text = caipin.categoryName; this.miaoshu.Text = caipin.miaoshu; this.isStart.SelectedValue = caipin.isStart.ToString(); } } }