Render similar data in C# by grouping
- by Ted
I am trying to create some dynamic html out of some data from db. My data returned from db is:
ApplicationName URL
AppName1 URL1
AppName2 URL1
AppName2 URL2
AppName1 URL2
I want that all URL's for a single application should be rendered under one heading of ApplicationName. Like:
AppName1
URL1
URL2
AppName2
URL1
URL2
Can anyone help me in the code for this?