Link to home
Start Free TrialLog in
Avatar of mugsey
mugseyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Problem with & when using a web service

I am using third party webservice to create records.

I read in from database this title

   "Customers & Records"

    However the webservice writes to database as

    "Customers & invoices"

notice it adds      "&"     instead of &

What is the best way around this?  I want it to write "&" as oppose to "&"


In my code I have  

customercategory thiscategory = new customercategory();
thiscategory.title = /////read in tite from database



Avatar of VikramMullick
VikramMullick

try using && instead of &
Avatar of mugsey

ASKER

Thanks but I cannot modify the database table I am reading from
I guess you might be using dataset/datatable for fetching data .
Then try to replace/append the & symbol and then send it to webservice.
Avatar of mugsey

ASKER

Yes I have been doing that with string.replace  but I need the "&" to be preserved
ASKER CERTIFIED SOLUTION
Avatar of Prodige
Prodige

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial