/// <summary> /// 当分页控件中的下拉菜单触发时 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { int page = Convert.ToInt32(((DropDownList)sender).SelectedValue.ToString()); pageindexHidden.Value = common.cleanXSS(page.ToString()); setRowCout(); BindData(page);//调用显示 }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //this.ucshow1.id = Request["id"]; Read_Data(common.cleanXSS(Request["id"].ToString())); this.Button_sumbit.Visible = true; ShowDDLControlInfo(common.cleanXSS(Request["id"].ToString())); /*设置模板页中的管理值*/ (Master.FindControl("Label_navigation") as Label).Text = "管理 > 财务管理 > 资金卡记帐"; /*设置模板页中的管理值*/ if (Request["PageStr"] != null) { PageStr = Request["PageStr"]; } if (PageStr == "add") { Button_sumbit0.Visible = false; } } }