Posted on: 12/30/2013 9:27:44 PM | Views : 669

Please help me fix my code - getting a syntax error massage:
 private string GridViewSortExpression         {             get { return ViewState["SortExpression"] == null ? string.Empty : ViewState["SortExpression"]; }             set { ViewState["SortExpression"] = value; }         }

Error Message:
Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)

Go to the complete details ...