private void GetUserFollower() { if (Session["login"] == null && Session["UserName"] == null && Session["AccountID"] == null) { var _clsGetUserFollower = new BllUser(); if (String.IsNullOrEmpty(txtSearchFriend.Value)) { var _dtGetUserFollower = _clsGetUserFollower.GetUser(string.Empty); if (_dtGetUserFollower != null && _dtGetUserFollower.Rows.Count > 0) { ListViewAll.DataSource = _dtGetUserFollower; ListViewAll.DataBind(); ListViewAll.Visible = true; } else { ListViewAll.Visible = false; } } else { var _dtGetUserFollower = _clsGetUserFollower.GetUser(txtSearchFriend.Value); if (_dtGetUserFollower != null && _dtGetUserFollower.Rows.Count > 0) { ListViewAll.DataSource = _dtGetUserFollower; ListViewAll.DataBind(); ListViewAll.Visible = true; } else { ListViewAll.Visible = false; } } } else { var _clsGetUserFollower = new BllUser(); if (String.IsNullOrEmpty(txtSearchFriend.Value)) { var _dtGetUserFollower = _clsGetUserFollower.GetUserFollower(string.Empty, (Session["AccountID"].ToString())); if (_dtGetUserFollower != null && _dtGetUserFollower.Rows.Count > 0) { ListViewAll.DataSource = _dtGetUserFollower; ListViewAll.DataBind(); ListViewAll.Visible = true; } else { ListViewAll.Visible = false; } } else { var _dtGetUserFollower = _clsGetUserFollower.GetUserFollower(txtSearchFriend.Value, (Session["AccountID"].ToString())); if (_dtGetUserFollower != null && _dtGetUserFollower.Rows.Count > 0) { ListViewAll.DataSource = _dtGetUserFollower; ListViewAll.DataBind(); ListViewAll.Visible = true; } else { ListViewAll.Visible = false; } } } }