Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: convert char to ascii in c#


Message #1 by Sridhar Raj G <Sridharr@i...> on Thu, 18 Apr 2002 18:21:11 +0530
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
Message #2 by "Manuj Sarpal" <manujsarpal@h...> on Thu, 18 Apr 2002 14:35:56 +0100

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
> 
> 

  Return to Index