i have a sql query, i want to append the html in it and return the resultset into single cell below is my query
SELECT TOP (@TOP) C.Title FROM CrossArticle_Article C
INNER JOIN CrossArticle_ArticleToCategory A2C
ON C.Id = A2C.ArticleId
INNER JOIN CrossArticle_Category CC
ON A2C.CategoryId = CC.Id
INNER JOIN crossarticle_url CU
ON C.Id = CU.articleid
WHERE CC.Id = @CategoryID
AND CC.PortalId = 6
GROUP BY C.TITLE, CU.URL, C.PublishDate
ORDER BY C.PublishDate DESC
currently it will display in row, i want in single cell with html appended to it.
like below <li><span><a href='+CU.URL+'>C.Title</a></span></li>
Please reply if anyone have any idea
As for the how…
As for the Why… You might be better-off building this in your mark-up…not sure what your requirements may be, but blending your data layer with your presentation layer can have some drawbacks.