System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
System.Text.Decoder utf8Decode = encoder.GetDecoder();
byte[] todecode_byte = Convert.FromBase64String(DTourPrNo);----->here i am getting error.
int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
char[] decoded_char = new char[charCount]; utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
string result = new String(decoded_char); return result;
System.Text.Decoder utf8Decode = encoder.GetDecoder();
byte[] todecode_byte = Convert.FromBase64String(DTourPrNo);----->here i am getting error.
int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
char[] decoded_char = new char[charCount]; utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
string result = new String(decoded_char); return result;

Suthish NairRank #92 · 22.8K reputationPosted Oct 8, 2010, 1:51 AM EDT
refer another discussion, might helps you:
http://www.vbforums.com/showthread.php?s=&threadid=287324
spandana nair13 reputationPosted Oct 8, 2010, 1:57 AM EDT
tpno = Request.QueryString["tour"].ToString();
tpno = ObjCon.base64Decode(tpno);
tpno = tpno.Replace("P!r@u#o$t", "");
after this code it goes to that loop.
spandana nair13 reputationPosted Oct 8, 2010, 2:47 AM EDT
tpno = Request.QueryString["tour"].ToString();
tpno = ObjCon.base64Decode(tpno);
tpno = tpno.Replace("P!r@u#o$t", "");
after this code it goes to that loop.
Suthish NairRank #92 · 22.8K reputationPosted Oct 8, 2010, 2:54 AM EDT
spandana nair13 reputationPosted Oct 8, 2010, 3:40 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 8, 2010, 6:01 AM EDT
Also attach your page code..
Jiyaul MustaphaRank #5,573 · 294 reputationPosted Jun 4, 2019, 12:42 AM EDT