Hash table: Date key and string value (C#)
<%@ Page Language="C#" %> <script runat="server"> void Page_Load(){ Hashtable myHashtable = new Hashtable(); myHashtable[Convert.ToDateTime("1/1/2005")] = "Event on January 1st 2005"; string CountryName; CountryName = Convert.ToString(myHashtable[Convert.ToDateTime("1/1/2005")]); lblOut.Text = CountryName; } </script> <html> <head> </head> <body> <form runat="server"> <asp:Label runat="server" ID = "lblOut">Label</asp:Label> </form> </body> </html>