开发者

Display Single Record -- Best practice

开发者 https://www.devze.com 2022-12-11 17:31 出处:网络
To display a single record based on query-string parameter should i use sqlda开发者_StackOverflow社区tasource and repeater or HTML Table with labels inside it and assign the value from the code behind

To display a single record based on query-string parameter should i use sqlda开发者_StackOverflow社区tasource and repeater or HTML Table with labels inside it and assign the value from the code behind.

(This clearly is not about best practices. I have to resort to this method due to time constraint)

Thank You in Advance.


If it's a single record, with no chance of more than one, then just use labels - the repeater adds an unnecessary complication.


DetailsView (+ DataSource) can print out a table of name-value pairs.

Personally i prefer manual table with Labels and Literals.

0

精彩评论

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