通过Newtonsoft.Json把类放在ViewState里再解析
接收
string queryClause = ViewState["serQueryClause"].ToString(); msAstQuery = (MsQuery)JavaScriptConvert.DeserializeObject(queryClause, typeof(MsQuery));
存储
ViewState["serQueryClause"] = JavaScriptConvert.SerializeObject(msAstQuery);