using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.ServiceModel; using nmsSetup; using KMASchoolERP; public partial class Admin_Account_Default5 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { confcenter.Visible = true; if (!IsPostBack) { if (Request.QueryString["log"] != null) { if (Request.QueryString["sts"] == "1") { if (Session["officeAdmin"] == null) { Session["officeAdmin"] = Request.QueryString["log"].ToString(); confcenter.Visible = true; Session["webFSess"] = null; Session["webFSess1"] = null; staffid.Value = Request.QueryString["log"].ToString(); Session["homeURL"] = HttpContext.Current.Request.Url.AbsoluteUri; } } else if (Request.QueryString["sts"] == "2") { if (Session["WebFSess"] == null) { Session["WebFSess"] = Request.QueryString["log"].ToString(); // string getlist = Session["WebFSess"] as string; ; // string[] getval = getlist.Split(','); // Session["WebFType"] = getval[9]; } Session["officeAdmin"] = null; Session["webFSess1"] = null; bindmsg(); } else { if (Session["WebFSess1"] == null) { Session["WebFSess1"] = Request.QueryString["log"].ToString(); // string getlist = Session["WebFSess1"] as string; ; // string[] getval = getlist.Split(','); // Session["WebFType"] = getval[9]; } Session["officeAdmin"] = null; Session["webFSess"] = null; } Session["name"] = Request.QueryString["name"].ToString(); } else { Response.Redirect("../Login/AdminLogin.aspx?User=Logout"); } } } public void bindmsg() { if (Session["WebFType"] != null) { democenter.Visible = true; // confcenter.Visible = false; mCourse.InnerText = "Welcome to Gramin Shiksha"; } else { democenter.Visible = true; // confcenter.Visible = true; } } }