Results 1 to 4 of 4

Thread: Hash Tables

  1. #1

    Thread Starter
    New Member joshi_nitin's Avatar
    Join Date
    Jan 2005
    Posts
    7

    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.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    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]

  3. #3
    Addicted Member
    Join Date
    May 2005
    Posts
    210

    Re: Hash Tables

    what's a hash table?

  4. #4
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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
  •  



Click Here to Expand Forum to Full Width