I'm working on developing a solution for my website that will grab headlines and news articles from my database and display the 4 latest Headlines on my homepage with links to the full articles. I created a custom form that displays the information in a format that I would like. I tried creating a method in the code behind that would create one of these objects and populate itself with information from the database. This method would be invoked 4 times to display them in a vertical list. This is not going as smoothly as I thought it would. Does anybody have any ideas on how I could go about doing this. This code has to be dynamic since it will pull open a different article every time to display on the homepage. I'm new to the datagrids so if there is something that I can customize for this please point me in the right direction.
Thanks,