datalist control in 3tier architecture

Posted by Saritha.rajeshkumar under C# on 5/3/2011 | Points: 10 | Views : 13616 | Status : [Member] | Replies : 2
hi this saritha,
iam able to retreive the data from databse to gridview but iam not able to retreive in datalist control. in 3tier architecture.


Posted by: SheoNarayan on: 5/3/2011 [Administrator] HonoraryPlatinum | Points: 25

DataList control has nothing to do with the 3-tier or any other architecture. Might be you are not writing its template fields properly. Check out this DataList tutorials If you are able to populate GridView, you should be able to populate DataList as well.

One important point to note is that DataList doesn't support AutoGenerateColumns as GridView does, so you will have to write ItemTemplate and others explicitly.

Sheo Narayan

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response