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?
Your code behind probably has something like this, so you can access the items in your aspx markup:
Then in your aspx file, simply throw in some linq into the mix to perform the grouping operation: