Carattere Maggiore SelectCommand – Visual Basic 2010 – Framework 4

Se Visual Studio 2010 SP1, segnala nella procedura di validazione della pagina aspx il seguente messaggio
“Validation (ASP.Net): If this attribute value is enclosed in quotation marks, the quotation marks must match.”
inerente ad una giga di codice della proprietà SelectCommand di un SqlDataSource
è molto probabile che vi sia il carattere “>” nella istruzione SQL associata.

Per risolvere il problema sostituire il carattere “>” con >

Esempio:

‘Errore:
SelectCommand=”SELECT id FROM tab1 WHERE id > 124″

‘Corretto:
SelectCommand=”SELECT id FROM tab1 WHERE id > 124″

Per maggiori dettagli:
http://forums.asp.net/t/1257036.aspx/1

This entry was posted in Microsoft .NET Visual Basic, Programming Languages. Bookmark the permalink.