Script(s)

what I learn is what u c

ADD/Read Hashtable Values using Asp.net (VB)

leave a comment »

Ex:


' Add values to Hashtable

Dim aHash As New Hashtable

aHash.Add("id", Trim(txtID.Text))
aHash.Add("name", Trim(txtName.Text))

' Read Values from Hashtable

Dim en As IDictionaryEnumerator
en = aHash.GetEnumerator

While en.MoveNext
Response.write ("Key : " & en.Key & " / Value : " & en.Value)
End While

Advertisements

Written by gchandra

May 1, 2006 at 2:26 pm

Posted in Web Coding

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: