void loadBusinessProfile() { long?selected_business_type = null; if (ddFilterBusinessType.SelectedValue != "-1") { selected_business_type = convert_long(ddFilterBusinessType.SelectedValue, false); } dttemp = csql.getBusinessPaging("SmartConcepcion", gvBusinessProfiles.PageSize, p_PageIndex, txtUserSearch.Text, p_BrgyID, selected_business_type); gvBusinessProfiles.PageIndex = p_PageIndex; if (dttemp.Rows.Count > 0) { gvBusinessProfiles.VirtualItemCount = (int)dttemp.Rows[0]["reccount"]; loadGridView(gvBusinessProfiles, dttemp); norecord.Visible = false; gvBusinessProfiles.Visible = true; upBusiness.Update(); } else { norecord.Visible = true; gvBusinessProfiles.Visible = false; upBusiness.Update(); } }