|
-
Feb 8th, 2005, 06:39 AM
#1
Thread Starter
New Member
Hash Tables
How can i use HashTables.... using sql sever as backend...to dispaly data in a table?
Thanx!!!
Last edited by joshi_nitin; Feb 9th, 2005 at 05:44 AM.
-
Feb 9th, 2005, 08:51 AM
#2
Retired VBF Adm1nistrator
Re: Hash Tables
I would suggest just bind a repeater or datalist or something to a dataset
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
May 24th, 2005, 01:25 AM
#3
Addicted Member
-
May 24th, 2005, 03:51 AM
#4
Frenzied Member
Re: Hash Tables
ultimate_girl:
A hash table is a data structure that holds key-value pairs. In other words I could add an item to a hash table like so:
Code:
MyHashTable.Add("Key", "Value);
and then access the value by referencing the key:
Code:
MyValue = MyHashTable("Key");
joshi_nitin:
You can't use HashTables to display data they are purely a data structure.
You could populate a HashTable from your database and then databind it to a datalist or repeater as plenderj suggested.
Generally speaking though a DataTable is used as the data structure as it has methods in place to populate it automatically from a database query rather than having to write all the code to do this manually into a Hash Table.
Let me know if you need to know more.
DJ
If I have been helpful please rate my post. If I haven't tell me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|