private void GetSearchResultFromDataBase(string searchword) { try { if (Session["SageDtv"] == null) { SageFrameConfig pagebase = new SageFrameConfig(); bool IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls); SageFrameSearch SFS = new SageFrameSearch(); DataSet ds = SFS.SageSearchBySearchWord(searchword, GetUsername, GetCurrentCultureName, IsUseFriendlyUrls, GetPortalID); if (ds != null && ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0] != null) { DataTable dt = ds.Tables[0];//Result DataView dtv = new DataView(dt); Session["SageDtv"] = ds; DataTable dtSections = ds.Tables[1];//For Sections BindOrderingSection(); BindResultSections(dtSections); DataTable dtTime = ds.Tables[2];//Time of Execution in millisecond gdvList.DataSource = dtv; gdvList.DataBind(); } } //else //{ // BindOrderingSection(); // FilterSerchResult(); //} } catch (Exception ex) { ProcessException(ex); } }