/// <summary> /// Retrieves the current search values from session or request. /// </summary> public void GetSearchValue() { bool isClearing = HttpContext.Current.Request.Form["clearSearch"] == "1"; if (!isClearing) { if (!String.IsNullOrEmpty(HttpContext.Current.Request.Form["data_" + IdData])) { SessionHandler.AddToSessionVars("data_" + IdData, HttpContext.Current.Request.Form["data_" + IdData]); } if (!String.IsNullOrEmpty(HttpContext.Current.Request.Form["data_" + IdData + "_aux"])) { SessionHandler.AddToSessionVars("data_" + IdData + "_aux", HttpContext.Current.Request.Form["data_" + IdData + "_aux"]); } try { SearchValue = SessionHandler.SessionVars["data_" + IdData]; Value = SearchValue; } catch (Exception ex) { } try { SearchValueAux = SessionHandler.SessionVars["data_" + IdData + "_aux"]; } catch (Exception ex) { } } else { SessionHandler.ClearSessionVars(); } }