Not sure why this class is not publicly available?? You have to access it using the HTTPUtility.ParaseQueryString. The cool thing is that it returns encoded URL...
This prints:
Name=Rahman+Mahmoodi&Location=Sydney+Australia
Code Snippet
- var col = System.Web.HttpUtility.ParseQueryString(string.Empty);
- col.Add("Name", "rahman mahmoodi");
- col.Add("Location", "Sydney Australia");
-
- MessageBox.Show(col.ToString());
No comments:
Post a Comment