shridhar .
try this out..
I think it will solve your purpose.
byte x;
char h='G';
x=(byte)(h);
Manuj
----- Original Message -----
From: "Sridhar Raj G" <Sridharr@i...>
To: "ASP+" <aspx@p...>
Sent: Thursday, April 18, 2002 1:51 PM
Subject: [aspx] convert char to ascii in c#
> hi.,
> thanks in advance
> can any one give an equivalent equation for
>
> VB code in c#
>
> VB
> xyz = asc("a")
>
>
> C#
> xyz = ??????? ; // i want the syntax for ascii conversions
> of a character.
>
>
> Regards
> Sridhar G
>
>