I have a SqlDataSource
for a gridview. I want to change SelectCommand
of that SqlDataSource
.
My select command is:
select *
from JobLog
where UserName = @username
and PrinterName = @printer
and TimeSubmitted between @from and @to
I want to replace @username
and ... with textboxes.
How can I do this?