protected void Page_Load(object sender, EventArgs e) { if (Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.IsLoggedIn] == null || Convert.ToBoolean(Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.IsLoggedIn]) == false || (MtbBillCollection.Utility.Screen.IsUserPermitedToAccessScreen(Convert.ToInt32(Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.UserTypeId].ToString()), "Register")) == false) { Response.Redirect("/Default.aspx"); } if (!IsPostBack) { _authenticationManger.ConnectionString = MtbBillCollection.WebConfigManager.GetCollDBConnString(); BranchList.DataSource = _authenticationManger.GetBranchList(); BranchList.DataBind(); _authenticationManger.ConnectionString = MtbBillCollection.WebConfigManager.GetCollDBConnString(); UserTypeList.DataSource = _authenticationManger.GetUserTypeList(); UserTypeList.DataBind(); } }