开发者

ASP.NET DataList for a single item

开发者 https://www.devze.com 2023-01-12 06:43 出处:网络
Context: In an ASP.NET application, I 开发者_开发知识库need the behavior of the ItemTemplate / EditItemTemplate that theDataList control provides. However, I only need one item in my control, which ma

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

精彩评论

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

关注公众号