protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BuildCheckBox(); BuildWojewodztwaCheckBox(); Usr.FillWygladDropDownList(DDLWyglad); } if (IsPostBack) { BuildPaginationLinks("1"); } }
protected void CheckWygladDropDownList() { string userid = Session["userid"].ToString(); try { DDLWyglad = Usr.FillWygladDropDownList(DDLWyglad); int budowa = Usr.SelectBudowaCiala(userid); if (budowa != 0) { DDLWyglad.SelectedValue = budowa.ToString(); } } catch (Exception ex) { HttpContext.Current.Trace.Write(ex.Message); } finally { } }