hi guys can you please help me I wanna know if there is any method to convert an integer to it's ascii formate ?? I tried this
byte[] _sAsciiFormate =ASCIIEncoding.ASCII.GetBytes(txtDatatoConvert.Text); but it does not do what I want to do.I want to take a number like changing 10 to be A (ascii format) or 12 to be C
Looking foward to your responces
Best Regards
Loading
Niradhip ChakrabortyPosted Jul 21, 2009, 2:04 PM
1.http://bytes.com/groups/net-c/232850-convert-number-its-ascii-value
2.http://dotnetsavvyblog.blogspot.com/2008/06/to-convert-int-into-ascii-char.html
naura paxPosted Jul 21, 2009, 7:09 AM
As far as I understand you have a number say 65 (which is ascii code for 'A')
and you want 'A'. Look up the ascii table for all numbers and
try out this code:
char a = (char)65;
MessageBox.Show(a.ToString());
Please tell me if that's what you want.