Jul 04, 2012 04:13 PM|jumojer|LINK
Hi everybody, I have a problem with one of my dataset's function. I used this function as the selectMethod for my gridview's objectDataSource
This resquest is build like this :
Select column1, column2 From dataTable Where (column1 = ?)m Order BY ?
and then I add the parameters with the <selectParameters> tag of my object data source and but the values dynamicly in the code behind
the only thing is that the ORDER BY ? does no works with a parameter but as soon as I do this ORDER BY column1
it works.. Why does the 'order by' statement work in that case and not the other?