The ASP Dictionary.Add Method is used to add a new key-value pair to the Dictionary Object.
Parameters: This method has two parameters as mentioned above and described below:
- key: It specifies the name of the key to be inserted. It is a required parameter.
- item: It specifies the value that has to be associated with the key in the key-value pair.
Example: The below code demonstrates the ASP Dictionary.Add Method.
Value of key 'br' is: Brown Value of key 'p' is: Pink