예제 #1
0
파일: info.aspx.cs 프로젝트: sun6699/PC
 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();
     }
 }
예제 #2
0
파일: info.aspx.cs 프로젝트: sun6699/PC
        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();
            }
        }