protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { PnlPermission.Height = Unit.Pixel(700); PnlDiscussion.Height = Unit.Pixel(700); DListOrganization.DataSource = DALC.GetOrganizations(); DListOrganization.DataBind(); DListOrganization.Items.Insert(0, new ListItem("--", "0")); DListFilterOrganizations.DataSource = DALC.GetOrganizations(); DListFilterOrganizations.DataBind(); DListFilterOrganizations.Items.Insert(0, new ListItem("--", "0")); LnkOtherApp_Click(null, null); } }
protected void Page_Load(object sender, EventArgs e) { //Login control if (DALC._GetUsersLogin == null) { Config.Redirect("/?return=" + Request.Url.ToString()); return; } // tarixcəyə baxmağa icazəsi yoxdursa ataq qırağa if (!DALC._IsPermissionType(30)) { Config.Redirect("/"); return; } PersonsID = Config._GetQueryString("i").QueryIdDecrypt().Replace("-1", ""); if (!string.IsNullOrEmpty(PersonsID) && !PersonsID.IsNumeric()) { Config.RedirectMain(); return; } if (!IsPostBack) { DListPermissionsType.DataSource = DALC.GetUsersPermissionTypesList(); DListPermissionsType.DataBind(); DListPermissionsType.Items.Insert(0, new ListItem("--", "0")); DListOrganization.DataSource = DALC.GetOrganizations(); DListOrganization.DataBind(); DListOrganization.Items.Insert(0, new ListItem("--", "0")); DListOrganization_SelectedIndexChanged(null, null); DListHistoryTypes.DataSource = DALC.GetHistoryTypes(); DListHistoryTypes.DataBind(); DListHistoryTypes.Items.Insert(0, new ListItem("--", "0")); LnkOtherApp_Click(null, null); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DListPermissionsType.DataSource = DALC.GetUsersPermissionTypesList(); DListPermissionsType.DataBind(); DListPermissionsType.Items.Insert(0, new ListItem("--", "0")); DListOrganization.DataSource = DALC.GetOrganizations(); DListOrganization.DataBind(); DListOrganization.Items.Insert(0, new ListItem("--", "0")); DListOrganization_SelectedIndexChanged(null, null); DListHistoryTypes.DataSource = DALC.GetHistoryTypes(); DListHistoryTypes.DataBind(); DListHistoryTypes.Items.Insert(0, new ListItem("--", "0")); LnkOtherApp_Click(null, null); } }