Use a hash table to hold URLs then display to GridView
Posted on 2006-07-13
I have not used Hash tables. My understanding is that people use these to hold IDs from a DB (after referencing a stored proc) then spit out the data in the hash table such as ID, Name, and other fields from the stored proc into a DataGrid....better yet, in my case, I want to spit it out into a GridView.
Tell me, am I correc, this is a technique that is used? If so, why no datasets?
Anyway, I need help in how to create a class that I could use in C# and a hash table somewhere to do just that. Populate my GridView in my aspx page.
I'm not sure where to start...I guess create my .cs page or linked library? Not sure what to do here. I am new at C#...very novice so please don't assume the simplest is known. I know how to in the past populate a GridView using a Dataset in code-behind but now I'm working in a real OOP environment at a new company trying to figure this out on my own time.