protected override void OnInit(EventArgs e) { if (!IsPostBack && !Program.Settings.IsValid) { BTC.DisplayInValidLicense(Page); } //base.OnInit; BTC btc = new BTC(); DataView dv = btc.getMasterSchool(); if (dv.Count != 0) { if (Convert.ToInt32(dv[0]["ckExpDate"]) == 0) { if (CurrentUser.ID != "4C3E218F-D513-416E-BD10-B4F161717F70") { Response.Redirect("../Setting/UnderConstruction2.aspx"); } } if (Convert.ToInt32(dv[0]["IsCon"]) == 1) { if (btc.ckGetAdmission(CurrentUser.UserRoleID) != 1) { Response.Redirect("../Setting/UnderConstruction.aspx"); } } } }
protected override void OnInit(EventArgs e) { if (!IsPostBack && !Program.Settings.IsValid) { BTC.DisplayInValidLicense(Page); } //base.OnInit; }