protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Button3.OnClientClick = Grid1.GetNoSelectionAlertInTopReference("没有选中项!"); BindGrid(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { btnAdd.OnClientClick = windowSourceCode.GetShowReference("Add.aspx", "添加属性信息"); btnDelete.OnClientClick = Grid1.GetNoSelectionAlertInTopReference("请至少选择一项!"); btnDelete.ConfirmText = String.Format("你确定要删除选中的 <b><script>{0}</script></b> 项吗?", Grid1.GetSelectedCountReference()); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); Bind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { 二级.Enabled = false; 级.Enabled = false; 负责人.Enabled = false; 房间.Enabled = false; btnCheckSelection.OnClientClick = Grid1.GetNoSelectionAlertInTopReference("没有选中项!"); BindGrid(); School清查盘点BLL pdbll = new School清查盘点BLL(); List <School一级部门表> xxmc = pdbll.查询一级部门(); 部门.DataTextField = "名称"; 部门.DataValueField = "ID"; 部门.DataSource = xxmc; 部门.DataBind(); 部门.EmptyText = "全部"; List <School一级类别表> yjlb = pdbll.查询一级类别(); 一级.DataTextField = "名称"; 一级.DataValueField = "ID"; 一级.DataSource = yjlb; 一级.DataBind(); 一级.EmptyText = "全部"; List <School建筑物信息表> 查询建筑物 = pdbll.查询建筑物信息表(); 存放地点.DataTextField = "名称"; 存放地点.DataValueField = "ID"; 存放地点.DataSource = 查询建筑物; 存放地点.DataBind(); 存放地点.EmptyText = "全部"; 二级.Enabled = false; 级.Enabled = false; 负责人.Enabled = false; 房间.Enabled = false; 二级.EmptyText = "全部"; 级.EmptyText = "全部"; 负责人.EmptyText = "全部"; 房间.EmptyText = "全部"; } }