Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 01-05-2017, 02:07 AM   #1
chinmay.sahoo
Registered User
 
Join Date: Dec 2013
Location: Banglore
Posts: 308
Send a message via AIM to chinmay.sahoo Send a message via MSN to chinmay.sahoo
Arrow How can I get the ASCII code for a character in C#?

Casting the char to an int will give you the ASCII value: char c = 'f'; System.Console.WriteLine((int)c); or for a character in a string: System.Console.WriteLine((int)s[3]); Even the base class libraries also offer ways to do this with the Convert class or Encoding classes if you need a particular encoding








Asthijivak |Fat Cutter
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
chinmay.sahoo is offline   Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Host1Plus.com - Web Hosting -50% | VPS From Hosting $2 | Dedicated Servers From $55 Aurimas Post your ad here 2 07-07-2016 11:11 PM
Host1Plus.com - Save 30% on Web Hosting |15% on VPS hosting Aurimas Post your ad here 0 03-21-2016 07:51 AM
Host1Plus.com - Web Hosting -30%| VPS -15%| Reseller from $20.00/mo Aurimas Post your ad here 0 03-01-2016 01:33 AM
Host1Plus.com | Quality International VPS Hosting with 24/7 Support from $0.75/mo Aurimas Post your ad here 0 08-13-2015 06:40 AM
attractive THANKGIVING offers with a coupon code KVChosting The Market 0 11-16-2012 06:21 AM


All times are GMT -7. The time now is 12:24 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.