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); }); }
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]); }
public static void p5_web_query_get(ApplicationContext context, ActiveEventArgs e) { XUtil.Get(context, e.Args, key => HttpContext.Current.Request.QueryString [key]); }
public static void p5_config_get(ApplicationContext context, ActiveEventArgs e) { XUtil.Get(context, e.Args, ix => ConfigurationManager.AppSettings[ix]); }
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]); }