Example #1
0
 /// <summary>
 /// set The custom string to check if the LIst of users have changed
 /// and consider the page
 /// </summary>
 /// <param name="context"></param>
 /// <param name="arg"></param>
 /// <returns></returns>
 public override string GetVaryByCustomString(HttpContext context, string arg)
 {
     if (arg == "CountUsers")
     {
         IDataContext<Person> dt = new TestDataContext();
         return context.Request.Url.Query + dt.CountUsers().ToString();
     }
     return "";
 }