G
Guest
In a asp.net site i need to make a url link like this:
http://server.com/test.aspx?base64=...Dn8WTw5zigKErw6QFxaF+wrvDksOkwqjDq1fCrsOewrc=
I've used the Convert.ToBase64String() to make the querystring parameter
But as you can see the second char is a "+". When receiving the parameter in
the test.aspx page this + gets replaced with an empty space " ".
On test.aspx i receive the parameter like this:
string test = Request.QueryString["base64"];
I've read there two articeles without finding a super nice way of making a
base64 string url safe
http://www.codeproject.com/aspnet/ScrambleQueryStrings.asp
http://www.codeproject.com/aspnet/EncodedUrlBuilder.asp
http://server.com/test.aspx?base64=...Dn8WTw5zigKErw6QFxaF+wrvDksOkwqjDq1fCrsOewrc=
I've used the Convert.ToBase64String() to make the querystring parameter
But as you can see the second char is a "+". When receiving the parameter in
the test.aspx page this + gets replaced with an empty space " ".
On test.aspx i receive the parameter like this:
string test = Request.QueryString["base64"];
I've read there two articeles without finding a super nice way of making a
base64 string url safe
http://www.codeproject.com/aspnet/ScrambleQueryStrings.asp
http://www.codeproject.com/aspnet/EncodedUrlBuilder.asp