AjaxControlToolkit.CascadingDropDown.QuerySimpleCascadingDropDownDocument C# (CSharp) Method

QuerySimpleCascadingDropDownDocument() public static method

A helper method to provide simple implementation of a method to query a data set and return relevant dropdown content.
public static QuerySimpleCascadingDropDownDocument ( XmlDocument document, string documentHierarchy, StringDictionary knownCategoryValuesDictionary, string category ) : AjaxControlToolkit.CascadingDropDownNameValue[]
document System.Xml.XmlDocument XML document containing the data set
documentHierarchy string List of strings representing the hierarchy of the data set
knownCategoryValuesDictionary System.Collections.Specialized.StringDictionary Known category/value pairs
category string Category for which the drop down contents are desired
return AjaxControlToolkit.CascadingDropDownNameValue[]
        public static CascadingDropDownNameValue[] QuerySimpleCascadingDropDownDocument(XmlDocument document, string[] documentHierarchy, StringDictionary knownCategoryValuesDictionary, string category)
        {
            // Use a default Regex for input validation that excludes any user input with the characters
            // '/', ''', or '*' in an effort to prevent XPath injection attacks against the web service.
            // Public sites should use a more restrictive Regex that is customized for their own data.
            return QuerySimpleCascadingDropDownDocument(document, documentHierarchy, knownCategoryValuesDictionary, category, new Regex("^[^/'\\*]*$"));
        }

Same methods

CascadingDropDown::QuerySimpleCascadingDropDownDocument ( XmlDocument document, string documentHierarchy, StringDictionary knownCategoryValuesDictionary, string category, Regex inputValidationRegex ) : AjaxControlToolkit.CascadingDropDownNameValue[]