protected void Page_Load(object sender, EventArgs e) { id = Request.QueryString["id"].GetInt(); types = Request.QueryString["types"].GetString(); if (!IsPostBack) { ddl_fenleiid.SetDataSource(LibCache.get_fenlei_dt("types='" + types + "'")); ddl_fenleiid.Items.Insert(0, LibZidian.get_default_item()); LoadData(); } }
protected void Page_Load(object sender, EventArgs e) { id = Request.QueryString["id"].GetInt(); if (id == 0) { id = -MyID; } types = Request.QueryString["types"].GetString(); if (!IsPostBack) { using (MAction action = new MAction("TcTupian")) { action.Delete("fid=-" + MyID); } ddl_fenleiid.SetDataSource(LibCache.get_fenlei_dt("types='" + types + "'")); ddl_fenleiid.Items.Insert(0, LibZidian.get_default_item()); LoadData(); } }