Results 1 to 12 of 12

Thread: How retrieve data from hash table output

Hybrid View

  1. #1
    New Member
    Join Date
    Jul 2012
    Posts
    1

    Re: How read a hash table object

    IDictionaryEnumerator s = hashtable.GetEnumerator();
    while (s.MoveNext())
    {
    MessageBox.Show(s.Key + s.Value.ToString());
    }

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How read a hash table object

    Quote Originally Posted by prasad.k539 View Post
    IDictionaryEnumerator s = hashtable.GetEnumerator();
    while (s.MoveNext())
    {
    MessageBox.Show(s.Key + s.Value.ToString());
    }
    Hello,

    Welcome to the forums! Thanks for taking the time to post in this thread!

    One thing I would say though, using MessageBox.Show within an ASP.NET application is not really a recommended best practice. Although it will "work" when you are debugging out of Visual Studio, when you deploy the application onto a server, you will never see the MessageBox appear on the client.

    Gary

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