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:

enter image description here

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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -