Exemplo n.º 1
0
        internal static object GetClientValue(ClientDataAttribute attribute, Type type)
        {
            if (attribute.UseGet && WebAppContext.Parameters.Has(attribute.Name))
                return WebAppContext.Parameters.Get(attribute.Name,type);
            else if (attribute.UsePost && WebAppContext.FormData.Has(attribute.Name))
                return WebAppContext.FormData.Get(attribute.Name,type);

            return null;
        }
Exemplo n.º 2
0
        internal static object GetClientValue(ClientDataAttribute attribute, Type type)
        {
            if (attribute.UseGet && WebAppContext.Parameters.Has(attribute.Name))
            {
                return(WebAppContext.Parameters.Get(attribute.Name, type));
            }

            if (attribute.UsePost && WebAppContext.FormData.Has(attribute.Name))
            {
                return(WebAppContext.FormData.Get(attribute.Name, type));
            }

            return(null);
        }