protected void lnkSize_Click(object sender, EventArgs e) { if (FilterMethod == 1) { if ((SortBy != null) && (SortBy.EndsWithCSafe("ASC"))) { SortBy = "FileSize DESC"; } else { SortBy = "FileSize ASC"; } OrderBy = SortBy; RaiseOnFilterChanged(); } else { if (!String.IsNullOrEmpty(SortQueryStringKey)) { string sort = QueryHelper.GetString(SortQueryStringKey, String.Empty); if (sort.StartsWithCSafe("FileSize")) { if (sort.EndsWithCSafe("ASC")) { RedirectToUpdatedUrl("FileSize;DESC"); } else { RedirectToUpdatedUrl("FileSize;ASC"); } } else { RedirectToUpdatedUrl("FileSize;ASC"); } } } }