Posted By

vcskicks on 04/02/09


Tagged

urlweb


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

paelgr
umang_nine
vali29
khouser
Priestd09


C# Encode URL String


 / Published in: C#
 

URL: http://www.vcskicks.com/encode-url.php

  1. //ASP.NET
  2. Server.UrlEncode("http://www.vcskicks.com/c#");
  3.  
  4. //WinForms
  5. //Add System.Web.dll reference first (Project > Add Reference)
  6. HttpUtility.UrlEncode("http://www.vcskicks.com/c#");

Report this snippet  

You need to login to post a comment.