HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Hashtable object contains items with the key / value pairs expressed.
Hashtable object contains items with the key / value pairs expressed. Key is used as the index by search key value can be achieved on a quick search.
Add items to Hashtable through Add () method.
The following code creates a Hashtable object called mycountries, and add the four elements:
Hashtable object can automatically generate text and values for the following controls:
To bind data to a RadioButtonList control, first create a RadioButtonList control in an x page (without any asp: ListItem elements):
Then add the script to create the list, and the binding values in the list to the RadioButtonList control:
Then we add a subroutine, when a user clicks on an item in the RadioButtonList control when the subroutine is executed. When a radio button is clicked, label will appear in the line of text:
Note: You can not choose to add to the Hashtable items are sorted.For the project alphabetical or numerical order, use the SortedList object.