using nmsSetup; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Admin_Fee_Default3 : System.Web.UI.Page { PRPSetup obj = new PRPSetup(); clsBLSetup b = new clsBLSetup(); protected void Page_Load(object sender, EventArgs e) { bind_reptMiscellaneous(); 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(); Session["log"] = Request.QueryString["log"].ToString();//-----For Wallet } else { Response.Redirect("/Login/AdminLogin.aspx?User=Logout"); } } } public void bind_reptMiscellaneous() { obj = new PRPSetup(); b = new clsBLSetup(); List lst1 = new List(); obj.catID = "11041"; lst1 = b.view_TextDetail(obj); if (lst1.Count > 0) { reptMiscellaneous.DataSource = lst1; reptMiscellaneous.DataBind(); } } }