Example #1
0
 public static void p5_web_cookie_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, delegate(string key) {
         // Fetching cookie
         var cookie = HttpContext.Current.Request.Cookies.Get(key);
         if (cookie != null && !string.IsNullOrEmpty(cookie.Value))
         {
             // Adding key node, and values beneath key node
             return(HttpUtility.UrlDecode(cookie.Value));
         }
         return(null);
     });
 }
Example #2
0
 public static void p5_web_cache_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, key => HttpContext.Current.Cache [key]);
 }
 public void p5_web_viewstate_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, key => ViewState [key]);
 }
Example #4
0
 public static void p5_web_query_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, key => HttpContext.Current.Request.QueryString [key]);
 }
Example #5
0
 public static void p5_config_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, ix => ConfigurationManager.AppSettings[ix]);
 }
Example #6
0
 public static void get_http_param(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, key => HttpContext.Current.Request.Params [key]);
 }
 public static void p5_web_post_get(ApplicationContext context, ActiveEventArgs e)
 {
     XUtil.Get(context, e.Args, key => HttpContext.Current.Request.Form [key]);
 }