I have a stored procedure that will return search results depending on what the user typed in the text box of a standard search. After pressing enter in the search box, I submit the request to search.aspx? Q = regardless of the user entered.
search.aspx has an sqldatasource that takes a querystring parameter and calls a stored procedure that joins several tables and contains the following, where are the sentences ...
where (description like '%' + @query + '%' or title like '%' + @query + '%' or calls.call_id like @query or r.firstname = @query or r.lastname = @query or n.note like '%' + @query + '%')
... is it safe for ie SQL injection using such parameters?
Thanks,
source share