Display Single Record -- Best practice
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 Label
s and Literal
s.
精彩评论