I have a little project, where I want to display various pieces of information on web page. Part of the information is the capabilites of the user's browser.
So far, the following code has grabbed all of the capabilities and displayed then onscreen, albeit in a crude form
What I would like to do, is display the information in a table. As the information is fairly short, I think I could display two key/value pairs per row. That is to say, I want my table to have four columns per row, the first will hold the key of the first dictionaryEntry, the second will hold the value. The third column will hold the key of the next dictionaryEntry and the fourth will hold the value. The next row will follow the same format until all of the key/value pairs are displayed.
I'm struggling with the logic to get the results I want. I need the get two dictionaryEntries at a time in order to create and assign values to my four columns which form a row, add the row and then do the same for the next two dictionaryEntries.
I'd appreciate any suggestions.
Jason
So far, the following code has grabbed all of the capabilities and displayed then onscreen, albeit in a crude form
VB.NET:
Dim bc As HttpBrowserCapabilities = Request.Browser
For Each de As DictionaryEntry In bc.Capabilities
Response.Write(de.Key & " = " & de.Value & "<br>")
Next
I'm struggling with the logic to get the results I want. I need the get two dictionaryEntries at a time in order to create and assign values to my four columns which form a row, add the row and then do the same for the next two dictionaryEntries.
I'd appreciate any suggestions.
Jason