开发者

ASP.NET DataList for a single item

Context: In an ASP.NET application, I 开发者_开发知识库need the behavior of the ItemTemplate / EditItemTemplate that the DataList control provides. However, I only need one item in my control, which makes the DataList seems like overkill.

Question: Is there a control in ASP.NET made to store a single item that has the template content behavior of the DataList and DataGrid? Should I use a DataList for only one item?


Why don't you use the FormView or DetailsView? They are meant to display one item (at the time).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜