|
-
Jun 24th, 2007, 11:30 PM
#1
Thread Starter
Addicted Member
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 . . . ?
Last edited by bomayed; Jun 25th, 2007 at 04:19 AM.
-
Jun 25th, 2007, 10:08 AM
#2
Re: Should I use gridview or datalist ? Ur opinion
-
Jun 25th, 2007, 12:09 PM
#3
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.
-
Jun 25th, 2007, 03:04 PM
#4
Hyperactive Member
Re: Should I use gridview or datalist ? Ur opinion
i would go with the repeater as well.
If this post helps, please RATE MY POST!
Using Visual Studio 2005 SE
-
Jun 26th, 2007, 12:48 AM
#5
Thread Starter
Addicted Member
Re: Should I use gridview or datalist ? Ur opinion
Thank you guys for your comments
-
Jun 27th, 2007, 12:08 AM
#6
Thread Starter
Addicted Member
Re: Should I use gridview or datalist ? Ur opinion
I should have asked this , why use a repeater control ? and why not datalist control ?
-
Jun 27th, 2007, 09:01 AM
#7
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.
-
Jun 27th, 2007, 11:10 AM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|