
October 4, 2010 13:13 by
Dim hsh As New System.Collections.Hashtable
Dim blnCreated As Boolean = False
hsh.Add("@fname", txtFName.Text.Trim())
hsh.Add("@lname", txtLName.Text.Trim())
hsh.Add("@email", txtEmail.Text.Trim())
hsh.Add("@company", txtCompany.Text.Trim())
hsh.Add("@password", txtPassword.Text.Trim())
hsh.Add("@refer", functions.GetCookie("refer"))
hsh.Add("@entry", functions.GetCookie("entry"))
hsh.Add("@phone", txtPhone.Text)
hsh.Add("@countyid", county_id.SelectedValue)
You can pass the hastable to an email function or database crud method and loop thru each item.
Nice when you have an application that adds records to a db or smtp send mail function.
6466b11c-c400-4afd-b38d-193d9232d6c8|3|4.7