• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Search for characters in Dataset + & replacement for url?

Hey there everyone,

I have a XML string that is being turned into a dataset and then bound to my page control. In one field in the XML is a place to pass a URL, the URL's that have a & in them break the conversion to Dataset...

So i implemneted a replace on this character in the XML and the dataset can now convert BUT the URL does not work.

two questions:

If i have a URL - http://www.url.com/something.aspx?test=1&test2=5 what would be the equivilent replacment for the & character int he url... Or is there one?

And is there a way to do a replace on a dataset for a specific character?

Nugs
0
Nugs
Asked:
Nugs
1 Solution
 
Bob LearnedCommented:
You can borrow from ASP.NET, if this is a WinForms app, or just use System.Web.HttpUtility.HtmlEncode/HtmlDecode.  '&' will be encoded as &

Bob
0
 
NugsAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now