Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to design a page and group the result by month

Status
Not open for further replies.

taree

Technical User
May 31, 2008
316
US
I just want to create a page where the information is grouped month. like january, feb....the purpose of this page is to display awarded job for the contractors. my intention is to diplay jobs let and awarded in january grouped together and the same for the rest of the months. can someone throw some ideas how this can be done?

thank you

january
all the jobs awarded for january goes here
february
all the jobs awarded for february goes here
 
You could use a Repeater and/or ListView controls and either:

1. Use nested controls to load the data for each month
2. Gather all the data sorted into date order and use the item data bound event to capture the current month, and write out a header tag each time the month changes

I'd go with option #2 as it will be less intensive.

Mark,

Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks
 
thank you for the clue Mark.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top