c# - How to validate an encoded url -
c# - How to validate an encoded url -
i have encoded url invalid, validate before decoding using httputility.urldecode()
how can validate encoded url below:
http%3a%2f%2fwww.one-two.com&buyer=21
you can validate url this:
uri sd; bool b_validurl = uri.trycreate(uri.unescapedatastring("http%3a%2f%2fwww.one-two.com&buyer=21"), urikind.relativeorabsolute, out sd);
if b_validurl=true
url valid, otherwise invalid.
c# url
Comments
Post a Comment