string DBDetails = "ashok";
string _DBString = Convert.ToBase64String(Encoding.Unicode.GetBytes(DBDetails));
byte[] stringBytes = Convert.FromBase64String(_DBString);
string decodedViewState = System.Text.Encoding.ASCII.GetString(stringBytes);
string Name = decodedViewState.Replace("\0", "");
string _DBString = Convert.ToBase64String(Encoding.Unicode.GetBytes(DBDetails));
byte[] stringBytes = Convert.FromBase64String(_DBString);
string decodedViewState = System.Text.Encoding.ASCII.GetString(stringBytes);
string Name = decodedViewState.Replace("\0", "");
No comments:
Post a Comment