Site icon The cannabidiol

Linq contains(term) term having & replaced

I have wrote a linq query with contains like below

where (sa.Name.Contains(term))

term having space replaced to +% and term having & replaced to 26 . how can I omit it

I want to pass ‘ & e’ like this parameter as term to find exact term in the database .

but now it is replaced so the output is different as per logic.

currently term = ‘ &’ URL pass =’localhost/ss.mvc/term=’+%26′

but I want to pass set url like ‘localhost/ss.mvc/term=’ &’

is there any way to omit this encode by replace contains with any other ?

Exit mobile version