I have a sql query for my SelectCommand on my SqlDataSource. It looks like this:
SELECT * FROM Books WHERE BookID = @BookID
TextBox passes the @BookID parameter using Asp: ControlParameter.
When I look at SelectCommand while passing the code, I see the following:
SELECT * FROM Books WHERE BookID = @BookID
What I really want to see is that if a person types 3 in the text box, I want to see
SELECT * FROM Books WHERE BookID = 3
I can't figure out how to access the above though?
source share