Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 5th, 2005, 04:07 PM
Friend of Wrox
Join Date: Sep 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Default storing data in hashtable

want to store Hashtable within a hashtable.Requirment is want to keep classid in one hashtable and coresponding student rec in another hashtable.

key clsid=1
[Data] sname="xxx",stu_id="2" ect

key clsid=2
[Data] sname="yyy",stu_id="4" ect

i tried below but doen't work.Pl advice me how to store and retrive from Hash table

    for(int k=0;k<=3;k++)
                                      if (!m_htMetadata.ContainsKey("clsid"))
                                          m_htMetadata.Add("clsid", k.ToString ());

                                      htAsset = (Hashtable)m_htMetadata["Data"];

                                      htAsset.Add ("sname","xxx");
                                      htAsset.Add ("stu_id","22");


Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing data to a variable Mikect VB Databases Basics 1 April 16th, 2007 01:53 PM
hashmap or hashtable need to store data from jsp kotaiah JSP Basics 0 October 14th, 2006 01:49 AM
jsp need to store data in hashtable or hashmap kotaiah JSP Basics 0 October 14th, 2006 01:48 AM
data storing probs anukagni Access 1 April 3rd, 2006 06:33 AM
Storing Large Amounts Of Data TSEROOGY Classic ASP Databases 3 October 26th, 2004 02:12 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.