Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
please send me a javascript code for:

I have a text box and I want that when I enter first letter it change in capital letter and other letter is changed in small letter.plzz send me a java scryt code not link.
Posted
Updated 2-Sep-12 23:42pm
v3

Hi Dear try this way

Here i am not using java script

C#
string Name = TxtFirstName.Text.Trim();
       Name = char.ToUpper(Name[0]) + Name.Substring(1);


you will get an idea.
 
Share this answer
 
v2
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900