/// <summary> /// Bind all user list /// </summary> public void INF_Get_UserList() { try { DDLUser.DataSource = objMenuBLL.INF_Get_UserList(DDLCompany.SelectedValues, DDLDepartment.SelectedValues); DDLUser.DataTextField = "UserName"; DDLUser.DataValueField = "UserID"; DDLUser.DataBind(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
protected void btnClearFilter_Click(object sender, ImageClickEventArgs e) { try { DDLCompany.ClearSelection(); DDLDepartment.ClearSelection(); DDLMenu.ClearSelection(); DDLMenu.ClearSelection(); DDLSubMenu.ClearSelection(); DDLUser.ClearSelection(); DDLPageName.ClearSelection(); Bind_AccessRightsReport(); } catch (Exception ex) { UDFLib.WriteExceptionLog(ex); string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true); } }
public void BindUserDLL() { try { int CompanyID = UDFLib.ConvertToInteger(lstCompany.SelectedValue); if (CompanyID == 0) { if (Session["USERCOMPANYID"] != null) { CompanyID = int.Parse(Session["USERCOMPANYID"].ToString()); } // CompanyID = 1; } DDLUser.DataSource = objBllUser.Get_UserList(CompanyID, ""); DDLUser.DataTextField = "USERNAME"; DDLUser.DataValueField = "USERID"; DDLUser.DataBind(); } catch (Exception ex) { } }