Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Search for characters in Dataset + & replacement for url?

Posted on 2007-08-10
2
Medium Priority
?
234 Views
Last Modified: 2010-04-15
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
Comment
Question by:Nugs
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 19672757
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
 
LVL 2

Author Comment

by:Nugs
ID: 19674125
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month21 days, left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question