0

I seems not working because double quotations are also inserted when i use parameterized SQL query. How can i remove the double quotations?

cmd.Parameters.AddWithValue("@SORT", (rdbAscending.Checked) ? "ASC" : "DESC");

Seehyung Lee
  • 590
  • 1
  • 15
  • 32

1 Answers1

0

Take a look at this post to see how you can use parameters in the ORDER BY clause.

Community
  • 1
  • 1
Alexander
  • 2,457
  • 1
  • 14
  • 17