IT Community - Software Programming, Web Development and Technical Support

How to display the values from a hashtable both key and value simultaneously?

This is a discussion on How to display the values from a hashtable both key and value simultaneously? within the C# Programming forums, part of the Software Development category; How to display the values from a hashtable both key and value simultaneously in C#?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-20-2007, 07:23 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Red face How to display the values from a hashtable both key and value simultaneously?

How to display the values from a hashtable both key and value simultaneously in C#?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2007, 07:26 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Thumbs up Re: How to display the values from a hashtable both key and value simultaneously?

Hi... KMaker...

display the values from a hashtable both key and value simultaneously..
with help of following code.....


foreach(DictionaryEntry de in hashtable)
{
Response.Write(de.Key.ToString() +":"+de.Value.ToString() + "<br>");
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Hashtable in C#. Balasubramanian.S C# Programming 6 12-12-2007 03:58 AM
Can I update two (or more) frames simultaneously? GDevakii HTML, CSS and Javascript Coding Techniques 1 10-26-2007 07:17 AM
Can I update two (or more) frames simultaneously? itbarota HTML, CSS and Javascript Coding Techniques 1 09-13-2007 03:00 AM
How to get the value in the dictionary both Key and Value collections simultaneously? oxygen C# Programming 1 07-26-2007 08:00 AM
I want to display LRESULT in messagebox.Is it.. theone C and C++ Programming 0 07-17-2007 03:30 AM


All times are GMT -7. The time now is 10:25 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0