<% @ Page language = "c #" autoeventwireup = "true" debug = "true"%>
Void Page_Load (Object Sender, Eventargs E) {
Hashtable ht_values = new hashtable ();
HT_VALUES.ADD ("1234", "Microsoft");
HT_VALUES.ADD ("3210", "IBM");
HT_VALUES.ADD ("4321", "Sun");
HT_VALUES.ADD ("5623", "Orlce");
MyDownload = HT_VALUES DITASOURCE
MyDownload = "Key";
MyDownload = "Value";
MYListBox.DataSource = HT_VALUES;
MyListBox.DataValuefield = "key";
MyListBox.DataTextField = "Value";
MyDataGrid.datasource = HT_VALUES;
Page.DATABIND ();
}
Script>