protected void BindNearbyPlaces() { Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]); var result = AccSvc.GetNearbyPlacesDetailsWithPaging(Accomodation_ID, Guid.Empty, Convert.ToString(PageSize), Convert.ToString(intPageIndex)); grdInAndAround.DataSource = result; grdInAndAround.PageIndex = intPageIndex; grdInAndAround.PageSize = PageSize; if (result != null) { if (result.Count > 0) { grdInAndAround.VirtualItemCount = result[0].TotalRecords ?? 0; } } grdInAndAround.DataBind(); GetLookupValues(); }