I am trying to pass an item in a querystring that will be used as a parameter in a SQL Server query. However the item may or may not contain a ampersand. If the item does contain an ampersand then it is not being passed correctly through the querystring and is cutting off at the word before the ampersand making the query results incorrect.
An example is a user chooses to view all job listings in the administrative & Support department. the querystring is only passing the administrative part and the query is not returning anything even if there are listings in the database. Is there any way that I can pass a string containing an ampersand into the querystring.
I do not have any control over the name of the departments. So I cannot remove the ampersands that way.
Thanks
An example is a user chooses to view all job listings in the administrative & Support department. the querystring is only passing the administrative part and the query is not returning anything even if there are listings in the database. Is there any way that I can pass a string containing an ampersand into the querystring.
I do not have any control over the name of the departments. So I cannot remove the ampersands that way.
Thanks