//重置 protected void Reset_Click(object sender, EventArgs e) { try { DropDownListCategoryName.Reset(); CategoryContent.Reset(); } catch (Exception ex) { publicmethod.SaveError(ex, this.Request); } }
protected void Page_Load(object sender, EventArgs e) { page = ViewState["page"] == null ? 0 : (int)ViewState["page"]; btnSelect_All.Text = "全选"; if (!IsPostBack) { //添加数据 btnAdd.OnClientClick = WindowAdd.GetShowReference("Add_BasicCode.aspx"); BindData(); btnDelete.Enabled = false; DropDownListCategoryName.Reset(); InitDropListDropDownListCategoryName(); } }
//刷新 protected void btnRefresh_Click(object sender, EventArgs e) { BindData(); btnDelete.Enabled = false; DropDownListCategoryName.Reset(); }