protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { lblMessage.Text = "You don't have sufficient previlege to access the requested information."; dvPageContent.Visible = false; } if (objUA.Add == 0) { // lnkEditInterviewPlanning.Visible = false; //GridView1.Columns[GridView1.Columns.Count - 1].Visible = false; } if (objUA.Edit == 0) { } if (objUA.Delete == 0) { } if (objUA.Approve == 0) { } }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Edit == 1) { uaEditFlag = true; } else // btnsave.Visible = false; if (objUA.Delete == 1) { uaDeleteFlage = true; } }
protected void btnCC_Click(object sender, EventArgs e) { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); txtSelectedIDsCC.Text = ""; string CC = ""; foreach (ListItem li in lstUsers.Items) { if (li.Selected) { DataTable dt = objUser.Get_UserDetails(int.Parse(li.Value)); if (dt.Rows.Count > 0) { if (CC.Length > 0 && dt.Rows[0]["MailID"].ToString() != "") { CC += ";"; } CC += dt.Rows[0]["MailID"].ToString(); } } } txtSelectedIDsCC.Text = CC; objUser = null; }
//protected void txtTo_TextChanged(object sender, EventArgs e) //{ // ucEmailAttachment1.Register_JS_Attach(); // try // { // string[] sNames = txtTo.Text.Split(';'); // if (txtTo.Text.IndexOf(',') > 0) // { // sNames = txtTo.Text.Split(','); // } // for (var i = 0; i < sNames.Length; i++) // { // if (sNames[i].IndexOf("@unimarships.com") < 0) // { // string[] ADUser = objAD.getActiveUserDetails(sNames[i]); // if (ADUser[3] != "") // { // txtTo.Text = txtTo.Text.ToLower().Replace(ADUser[1].ToString().ToLower(), ADUser[3].ToString().ToLower()); // } // } // } // } // catch { } //} //protected void txtCC_TextChanged(object sender, EventArgs e) //{ // ucEmailAttachment1.Register_JS_Attach(); // try // { // string[] sNames = txtCC.Text.Split(','); // for (var i = 0; i < sNames.Length; i++) // { // if (sNames[i].IndexOf("@unimarships.com") < 0) // { // string[] ADUser = objAD.getActiveUserDetails(sNames[i]); // if (ADUser[3] != "") // { // txtCC.Text = txtCC.Text.ToLower().Replace(ADUser[1].ToString().ToLower(), ADUser[3].ToString().ToLower()); // } // } // } // } // catch { } //} protected void btnAddTo_Click(object sender, EventArgs e) { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); txtSelectedIDsTo.Text = ""; string To = ""; foreach (ListItem li in lstUsers.Items) { if (li.Selected) { DataTable dt = objUser.Get_UserDetails(int.Parse(li.Value)); if (dt.Rows.Count > 0) { if (To.Length > 0 && dt.Rows[0]["MailID"].ToString() != "") { To += ";"; } To += dt.Rows[0]["MailID"].ToString(); } } } txtTo.Text += ";" + To; if (IsPostBack) { ucEmailAttachment1.Register_JS_Attach(); } UpdatePanel1.Update(); objUser = null; }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { pnl.Visible = false; lblMsg.Text = "You don't have sufficient previlege to access the requested information."; } else { pnl.Visible = true; } if (objUA.Add == 0) { } if (objUA.Edit == 1) { uaEditFlag = true; } //else // btnsave.Visible = false; if (objUA.Delete == 1) { uaDeleteFlage = true; } }
protected void UserAccessValidation() { UserAccess objUA = new UserAccess(); int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx"); } if (objUA.Add == 0) { lnkAddNewQuestion.Visible = false; } if (objUA.Edit == 0) { GridView_Criteria.Columns[GridView_Criteria.Columns.Count - 3].Visible = false; } if (objUA.Delete == 0) { GridView_Criteria.Columns[GridView_Criteria.Columns.Count - 2].Visible = false; } if (objUA.Approve == 0) { } }
/// <summary> /// To check acces for logged in user. /// like Add,Edit ,delete access for requested page. /// </summary> protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); try { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA != null) { if (objUA.View == 0) { Response.Write("<center><br><br><h2><font color=gray>You do not have enough priviledge to access this page.</font></h2></center>"); Response.End(); } // Only Admin can add/update mail id if (objUA.Admin == 1) { btnsave.Visible = true; } else { btnsave.Visible = false; } } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 0) { ImgBtnAddNewJob.Visible = false; grdJoblist.Columns[grdJoblist.Columns.Count - 1].Visible = false; } if (objUA.Edit == 0) { grdJoblist.Columns[grdJoblist.Columns.Count - 3].Visible = false; } if (objUA.Delete == 0) { } if (objUA.Approve == 0) { } }
protected void Page_Load(object sender, EventArgs e) { ViewState["ADMIN"] = null; UserAccessValidation(); lblmsg.Text = ""; if (!IsPostBack) { try { BLL_Infra_UserCredentials obj = new BLL_Infra_UserCredentials(); if (Convert.ToInt32(ViewState["ADMIN"].ToString()) == 1) { lstUserList.DataSource = obj.Get_User_By_Manager(0); } else { lstUserList.DataSource = obj.Get_User_By_Manager(Convert.ToInt32(Session["userid"].ToString())); } lstUserList.DataBind(); } catch (Exception ex) { lblmsg.Text = ex.Message; } } }
protected void UserAccessValidation() { int CurrentUserID = Convert.ToInt32(Session["userid"]); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 0) { btnCreateContract.Visible = false; } if (objUA.Edit == 0) { } if (objUA.Approve == 0) { btnCreateContract.Visible = false; } if (objUA.Delete == 0) { // You don't have sufficient previlege to access the requested page. } }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { MainDiv.Visible = false; AccessMsgDiv.Visible = true; } else { MainDiv.Visible = true; AccessMsgDiv.Visible = false; } if (objUA.Add == 0) { ImgAdd.Visible = false; } if (objUA.Edit == 1) { uaEditFlag = true; } if (objUA.Delete == 1) { uaDeleteFlage = true; } }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); //if (objUA.View == 0) // Response.Redirect("~/default.aspx?msgid=1"); if (objUA.Add == 0) { } if (objUA.Edit == 0) { } if (objUA.Delete == 0) { } if (objUA.Approve == 0) { } if (objUA.Admin == 1) { ViewState["WLADMIN"] = 1; } else { ViewState["WLADMIN"] = 0; } }
protected void btnCC_Click(object sender, EventArgs e) { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); txtSelectedIDsCC.Text = ""; string CC = ""; foreach (ListItem li in lstUsers.Items) { if (li.Selected) { DataTable dt = objUser.Get_UserDetails(int.Parse(li.Value)); if (dt.Rows.Count > 0) { if (CC.Length > 0 && dt.Rows[0]["MailID"].ToString() != "") { CC += ";"; } CC += dt.Rows[0]["MailID"].ToString(); } } } txtMailCC.Text += ";" + CC; objUser = null; //if (IsPostBack) //{ // ucEmailAttachment1.Register_JS_Attach(); //} UpdatePanel2.Update(); }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Admin == 0) { trAddNewSTWC = trAddNewTanker = false; editDeleteAccess = false; rt2.Visible = false; } if (objUA.Add == 1) { tdSave.Visible = true; btnSave.Visible = true; btnGroupSave.Visible = true; } else { tdSave.Visible = false; btnSave.Visible = false; btnGroupSave.Visible = false; } }
protected void gridRule_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ImageButton btnDelete = (ImageButton)e.Row.FindControl("lnlDelete"); ImageButton btnEdit = (ImageButton)e.Row.FindControl("lblEdit"); int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); SMS.Properties.UserAccess objUA = new SMS.Properties.UserAccess(); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.Edit == 0) { btnEdit.Visible = false; } else { btnEdit.Visible = true; } if (objUA.Delete == 0) { btnDelete.Visible = false; } else { btnDelete.Visible = true; } } }
protected void UserAccessValidation() { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); UserAccess objUA = new UserAccess(); int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 0) { } if (objUA.Edit == 0) { } if (objUA.Delete == 0) { } if (objUA.Approve == 0) { } }
/// <summary> /// Check for access rights /// </summary> protected void UserAccessValidation() { try { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); UserAccess objUA = new UserAccess(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { MainDiv.Visible = false; AccessMsgDiv.Visible = true; } else { MainDiv.Visible = true; AccessMsgDiv.Visible = false; } if (objUA.Add == 0) { btnSave.Visible = false; } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
public DataTable AuthenticateUser(string UserName, string Password) { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); DataSet ds = objUser.Get_UserCredentials(UserName, DMS.DES_Encrypt_Decrypt.Encrypt(Password)); DataTable UserTable = new DataTable("UserTable"); UserTable.Columns.Add(new DataColumn("UserId")); UserTable.Columns.Add(new DataColumn("User_Name")); UserTable.Columns.Add(new DataColumn("User_Type")); UserTable.Columns.Add(new DataColumn("User_FullName")); UserTable.Columns.Add(new DataColumn("Company_Name")); UserTable.Columns.Add(new DataColumn("COMPANY_ID")); if (ds.Tables["Login"].Rows.Count > 0) { DataRow row = UserTable.NewRow(); row["UserId"] = ds.Tables["Login"].Rows[0]["UserId"].ToString(); row["User_Name"] = ds.Tables["Login"].Rows[0]["User_Name"].ToString(); row["User_Type"] = ds.Tables["Login"].Rows[0]["User_Type"].ToString(); row["User_FullName"] = ds.Tables["Login"].Rows[0]["User_FullName"].ToString(); row["Company_Name"] = ds.Tables["Login"].Rows[0]["Company_Name"].ToString(); row["COMPANY_ID"] = ds.Tables["Login"].Rows[0]["COMPANY_ID"].ToString(); UserTable.Rows.Add(row); } else { } return(UserTable); }
/// <summary> /// To check access rights of user for requested page /// </summary> protected void UserAccessValidation() { try { UserAccess objUA = new UserAccess(); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); objUA = objUser.Get_UserAccessForPage(Convert.ToInt32(Session["USERID"]), PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 0) { } if (objUA.Edit == 1) { uaEditFlag = true; } if (objUA.Delete == 1) { uaDeleteFlage = true; } } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); } }
protected void btnAddTo_Click(object sender, EventArgs e) { BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); txtSelectedIDsTo.Text = ""; string To = ""; foreach (ListItem li in lstUsers.Items) { if (li.Selected) { DataTable dt = objUser.Get_UserDetails(int.Parse(li.Value)); if (dt.Rows.Count > 0) { if (To.Length > 0 && dt.Rows[0]["MailID"].ToString() != "") { To += ";"; } To += dt.Rows[0]["MailID"].ToString(); } } } txtMailTo.Text += ";" + To; //if (IsPostBack) //{ // ucEmailAttachment1.Register_JS_Attach(); //} // UpdatePanel2.Update(); objUser = null; string js = "showPopup('ThresholdActionSettingDew');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "Update", js, true); }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); UserAccess objUA = new UserAccess(); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Write("<center><br><br><h2><font color=gray>You do not have enough priviledge to access this page.</font></h2></center>"); Response.End(); } if (objUA.Add == 0) { pnlUploadDocument.Enabled = false; //btnAddFolderAccess.Enabled = false; } if (objUA.Edit == 0) { pnlUploadDocument.Enabled = false; } if (objUA.Delete == 0) { //btnRemoveFolderAccess.Enabled = false; } if (objUA.Approve == 0) { } }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); if (objUA.View == 0) { Response.Redirect("~/default.aspx"); } if (objUA.Add == 0) { lnkEditInterviewPlanning.Visible = false; GridView1.Columns[GridView1.Columns.Count - 1].Visible = false; } if (objUA.Edit == 0) { } if (objUA.Delete == 0) { } if (objUA.Approve == 0) { } UAAdminRights = objUA.Admin.ToString(); }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); string pageNOKURL = "CREW/CREWDETAILS_NOK.ASPX"; UserAccess objUANOK = new UserAccess(); objUANOK = objUser.Get_UserAccessForPage(CurrentUserID, pageNOKURL); if (objUANOK.Add == 0) { ImgAddNewDependent.Visible = false; ImgReloadDependents.Visible = false; } if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 0) { ImgAddNewDependent.Visible = false; btnUnplannedEval.Visible = false; } if (objUA.Edit == 0) { lnkEditPersonalDetails.Visible = false; imgCrewPic.Enabled = false; } if (objUA.Delete == 0) { } if (objUA.Approve == 0 || (Session["UTYPE"] != null && Session["UTYPE"].Equals("MANNING AGENT"))) { lnkNTBR.Visible = false; ImgBtnCrewApproval.Visible = false; btnUndoRejection.Visible = false; imgBtnBrief.Visible = false; } else { lnkNTBR.Visible = true; lnkNTBR.Attributes.Add("onclick", "EditCrewPrifileStatus(" + GetCrewID().ToString() + ")"); ImgBtnCrewApproval.Visible = true; btnUndoRejection.Visible = true; imgBtnBrief.Visible = true; } if (objUA.Admin == 0) { lnkResetCrewPassword.Visible = false; } }
public void Get_UserDetails() { BLL_Infra_UserCredentials ojbInfra = new BLL_Infra_UserCredentials(); DataTable dtuser = ojbInfra.Get_UserDetails(Convert.ToInt32(Session["userid"].ToString())); ViewState["DeptID"] = dtuser.Rows[0]["Dep_Code"].ToString(); ViewState["USERTYPE"] = dtuser.Rows[0]["User_Type"].ToString(); }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); Session["PageURL"] = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); Session["Edit"] = objUA.Edit; Session["Delete"] = objUA.Delete; Session["Add"] = objUA.Add; if (objUA.View == 0) { Response.Redirect("~/default.aspx?msgid=1"); } if (objUA.Add == 1) { uaAddFlag = true; } // btnsave.Visible = false; if (objUA.Edit == 1) { uaEditFlag = true; } else { //btnAlert.Visible = false; //btnPortCost.Visible = false; //btnPort.Visible = false; //PortCallNotification.Visible = false; } if (objUA.Delete == 1) { uaDeleteFlage = true; } DataTable dt = objPortCall.Get_PortCallAlertList(Convert.ToInt32(Session["USERID"].ToString()), "0"); if (dt.Rows.Count > 0) { int iCount = 0; foreach (DataRow dr in dt.Rows) { if (Convert.ToInt32(dr["READ_ID"]) == 0) { iCount++; } } if (iCount > 0) { btnAlerts.Visible = true; } } }
protected void Page_Load(object sender, EventArgs e) { UserAccessValidation(); lblMessageOnSendApproval.Text = ""; lblMessageOnSendApproval.Visible = false; //UserAccessValidation(); try { hdf_UserID.Value = Session["userid"].ToString(); if (!IsPostBack) { ListItem li = cmbFleet.Items.FindByValue(Convert.ToString(Session["USERFLEETID"])); if (li != null) { li.Selected = true; } BLL_Infra_VesselLib objBLLVessel = new BLL_Infra_VesselLib(); DataTable dtvsl = objBLLVessel.Get_VesselList(int.Parse(cmbFleet.SelectedValue), 0, UDFLib.ConvertToInteger(Session["USERCOMPANYID"]), "", UDFLib.ConvertToInteger(Session["USERCOMPANYID"])); DDlVessel_List.DataSource = dtvsl; DDlVessel_List.DataBind(); DDlVessel_List.Items.Insert(0, new ListItem("--VESSELS--", "0")); ViewState["Status"] = "NEW"; BindRequestList(); txtSelMenu.Value = lnkMenu1.ClientID; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "selectNode", "selMe('" + txtSelMenu.Value + "');", true); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); chklistUser.DataSource = objUser.Get_UserList(1); chklistUser.DataTextField = "USERNAME"; chklistUser.DataValueField = "USERID"; chklistUser.DataBind(); } chkShowAllPendingApproval.Visible = false; string js = "bindClientEvents();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "bindEvents", js, true); string js1 = "bindPaxsName();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "bindPaxsName", js1, true); string js2 = "bindRoutInfo();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "bindRoutInfo", js2, true); string js3 = "bindVesselPortCall();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "bindVesselPortCall", js3, true); string js4 = "bindselectors();"; ScriptManager.RegisterStartupScript(this, this.GetType(), "bindselectors", js4, true); } catch { throw; } }
//protected void Load_NetworkUsers() //{ // ddlNetwkid.DataSource = GetAllADDomainUsers_dl(); // ddlNetwkid.DataTextField = "UserName"; // ddlNetwkid.DataValueField = "UserID"; // ddlNetwkid.DataBind(); // ddlNetwkid.Items.Insert(0, new ListItem("-Select-", "")); //} protected void Load_UserTypes() { BLL_Infra_UserCredentials objBLLInfra = new BLL_Infra_UserCredentials(); ddlUserType.DataSource = objBLLInfra.Get_UserTypeList(); ddlUserType.DataTextField = "user_type"; ddlUserType.DataValueField = "user_type"; ddlUserType.DataBind(); ddlUserType.Items.Insert(0, new ListItem("-Select-", "0")); }
protected void BindUserList() { BLL_Infra_UserCredentials objInfra = new BLL_Infra_UserCredentials(); int UserCompanyID = int.Parse(Session["USERCOMPANYID"].ToString()); DataTable dtUsers = objInfra.Get_UserList(UserCompanyID); lstUser.DataSource = dtUsers; lstUser.DataBind(); lstUser.Items.Insert(0, new ListItem("- ALL -", "0")); }
protected void Load_UserList() { BLL_Infra_UserCredentials objInfra = new BLL_Infra_UserCredentials(); int UserCompanyID = int.Parse(getSessionString("USERCOMPANYID")); DataTable dtUsers = objInfra.Get_UserList(UserCompanyID); GridView_UserList.DataSource = dtUsers; GridView_UserList.DataBind(); //lstUser.Items.Insert(0, new ListItem("-SELECT ALL -", "0")); }
protected void UserAccessValidation() { int CurrentUserID = GetSessionUserID(); string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); SMS.Properties.UserAccess objUA = new SMS.Properties.UserAccess(); BLL_Infra_UserCredentials objUser = new BLL_Infra_UserCredentials(); objUA = objUser.Get_UserAccessForPage(CurrentUserID, PageURL); //if (objUA.View == 0) // Response.Redirect("~/default.aspx?msgid=1"); }