1 asp中 chr(21)=.net中(char)21; 2 asp中 asc('a')=.net中 char[] b=CodeStr.Substring(0,1).ToCharArray(0,1);(int)b[0];