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
SortedList objects combines the properties of an object and ArrayList Hashtable object.
SortedList object contains items with the key / value pairs expressed. SortedList objects automatically sort the items in alphabetical order or numerical order.
By Add () method to add items to the SortedList. By TrimToSize () method to adjust the final size SortedList.
The following code creates a SortedList object called mycountries, and add the four elements:
SortedList 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: