I have what I think is a fairly noob question that I can't seem to find a good answer for. I have just started out development in ASP.NET C# and have a page type that displays user information. Header, Content then Footer. Right now I have a DataList control that is displaying all the user data but I can't help but feel it is in bad form to wrap my entire Content section in the ItemTemplate of a DataList. The information is unique and not repeated so I just don't feel I am making the right choice of controls. Do you have any suggestion as to the proper control to be using to display database information across the entire page from a single call is?
Hi sosuke, There are a lot of ways you could potentially wrap/display your data. If you tell me a little bit about what kind of data you have I could recommend something more specific to you. In the meanwhile, here are some of your general options: DataGrids and DataGridViews for spreadsheet-esque data DataLists to place data in a template Repeaters to place data in your own custom html (sounds like maybe u want this?) Your decision may also vary if you are trying to reduce the # of sql queries run, or if you want to write anything to DB at any point. I wouldn't worry about form too much, unless you are somehow running multiple sql queries where you could run one instead.
I think your dead on about using a Repeater but I may have coded my way into a DataList due to my bindings. I appreciate the help and recommendations and think I will take your advice to not get hung up on at this point in the project development. I can worry about milliseconds after I have a million users. The data in question is always a single row return from a query string variable and is similar in format to a user profile page you might find on forums or social networking sites.