Dim dict As New Dictionary(Of String, Integer) dict.Add("1", 100) dict.Add("2", 200) dict("2") = 300
If (Not dict.ContainsKey(Key)) Then dict.Add(Key,Value) End If
List<int> lst = new List<int>(); lst.Add(2); lst.Add(1); lst.Sort(); foreach (int item in lst) { Response.Write(item); }
list.Clear();
List<int> lst = new List<int>(); lst.Remove(int item); List<string> lst = new List<string>(); lst.Remove(string item);
<asp:TextBox runat="server" Id="txt_first_name" /> <asp:RegularExpressionValidator runat="server" id="rex_first_name" ControlToValidate="txt_first_name" ValidationExpression="^[a-zA-Z]$" ErrorMessage="Only Characters Allowed" />
<asp:TextBox runat="server" Id="txt_first_name" /> <asp:RegularExpressionValidator runat="server" id="rex_first_name" ControlToValidate="txt_first_name" ValidationExpression="^[a-zA-Z ]$" ErrorMessage="Only Characters and Space Allowed" />
<asp:TextBox runat="server" Id="txt_policy_code" /> <asp:RegularExpressionValidator runat="server" id="rex_policy_code" ControlToValidate="txt_policy_code" ValidationExpression="^[a-zA-Z0-9 ]$" ErrorMessage="Only Alpha-Numeric and Space Allowed" />