Should I use gridview or datalist ? Ur opinion
I'm about to build a news section in my website. The news section should look like this:
Date: 1/1/2008
Title: News Title
Summary: News summary
Details
When the user clicks on Details , he should be able to read the selected news. All data are saved in access database.
Now , how would you choose to do it in ASP.NET , would you do it using gridview or datalist or . . . ?
Re: Should I use gridview or datalist ? Ur opinion
Re: Should I use gridview or datalist ? Ur opinion
GridView is out of the question for that kind of task. DataList is nice and flexible and can easily pull off what you need.. I haven't used the Repeater control enough to spout off pros/cons versus the DataList.
Re: Should I use gridview or datalist ? Ur opinion
i would go with the repeater as well.
Re: Should I use gridview or datalist ? Ur opinion
Thank you guys for your comments
Re: Should I use gridview or datalist ? Ur opinion
I should have asked this , why use a repeater control ? and why not datalist control ?
Re: Should I use gridview or datalist ? Ur opinion
Datalist and repeater are rather similar, but there's much more flexibility with the repeater control.
Re: Should I use gridview or datalist ? Ur opinion
A good example of a Repeater control: www.impact-romania.org
It's not my code, my co-worker wrote the repeater stuff... both the information in the box and the list of names are in repeater controls, with a bit of javascript behind to react to mouseovers. Works pretty well.
The other lists on that site are all DataLists, I believe.