asp.net - Validation errors when SQL query is formatted correctly -
i want display sql correctly in .aspx pages. getting bunch of validation errors when do. code still appears function correctly when running page though. here mean:

if had of sql on 1 line works fine. when try format correctly getting validation errors. how can not validation errors display query correctly?
this issue seems come on longer queries.
set selectcommand in codebehind , use @ infront of string (literal string), cannot used in xhtml.
sqldatasource6.selectcommand = @" /* sql query here */ ";
Comments
Post a Comment