In ASP.NET I have SqlDataSource, I pass into that ProductName
as parameter and get ProductId
from Select method.
Problem is when i pass ProductName
containing '&'
then Select Method returns nothing.
I tried replace '&'
with '\&'
like name=name.Replace("&",@"\&");
but nothing changes.
How can I handle that problem?