sqlDataSource and parameters

T

Tomas

Hello,

I use sqlDataSource and SelectQuery property to retriev data from access
database.
There is some problems with SelectQuery and Parameters.

I have sql below in sqlDataSource.SelectQuery and parameter as Name = ?
Value = title
Every time I start application I get error "SQL parsing error - Invalid
expression ? found in SELECT SQL statement at line 3"

Can someone point me what is wrong?


Select item.*, category.title as CategoryTitle, category.code as
CategoryCode
from item Join category On item.categoryid=category.id
Order By ?



regards,
Tomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top