idan
idan

Reputation: 97

Using System.Web.HttpUtility.UrlEncode in C# CLR Stored Procedure

I want to use System.Web.HttpUtility.UrlEncode(text) for one of the argument the I send in a HttpWebRequest. but I can't add the System.Web dll to my references.

any way to do UrlEncode in CLR?

thanks

Upvotes: 0

Views: 388

Answers (1)

Emre Kabaoglu
Emre Kabaoglu

Reputation: 13146

You can use WebUtility.UrlEncode to encode url.

https://msdn.microsoft.com/tr-tr/library/system.net.webutility.urlencode(v=vs.110).aspx

Upvotes: 1

Related Questions