private string getSortDirectionString(string Sort) { if (ViewState[Sort] == null) { ViewState[Sort] = "ASC"; } else { if (ViewState[Sort].ToString() == "ASC") { ViewState[Sort] = "DESC"; return ViewState[Sort].ToString(); } if (ViewState[Sort].ToString() == "DESC") { ViewState[Sort] = "ASC"; return ViewState[Sort].ToString(); } } return ViewState[Sort].ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)