mugsey
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
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
try using && instead of &
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.
Then try to replace/append the & symbol and then send it to webservice.
ASKER
Yes I have been doing that with string.replace but I need the "&" to be preserved
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.