umutto
umutto

Reputation: 7700

What control should i use to display dynamic data (pictures, names etc) like an html table on asp.net?

The source of my problem is my lack of experience with asp.net. I'm trying to display my videos in database as a html like table. Much like the main page of youtube or other video sharing websites.

To give more detail, I need to display small pictures that are linked to watch.aspx that are concerned of duration, name, users, and the thumbnail of the video.

Right now I'm creating a dynamic html table on the codebehind (programmatically creating href, div, img etc.. tags), resulting unnecessary more coding, a hard way to edit the design, less flexibility.

I know there are some nice controls that are being used in asp.net like gridview etc.. But I'm not experienced to select which or how to use.

Am I doing it the right way, or should I make them user controls, or use something like gridview, datalist, datatable?

More spesific, what is the best way to create the main page or search page of youtube on asp.net?

to give you a hint; this is what I'm asking about: what is the best way to create this table?

Upvotes: 2

Views: 762

Answers (2)

Naval
Naval

Reputation: 344

DevExpress controls are also very good .... here is the link to their asp.net controls http://www.devexpress.com/Products/NET/Controls/ASP/

Upvotes: 1

KV Prajapati
KV Prajapati

Reputation: 94643

You may use DataList - ASP.NET Server control and set RepeatColumns=n property to display n columns per row.

Upvotes: 2

Related Questions