Can someone tells me what's wrong with my code:
Then I call CapFirstLetter(Mytextbox.text)Code:protected string CapFirstLetter(string sentence) { sentence = char.ToUpper(sentence[0]) + sentence.Substring(1); return sentence; }
It never prints the first letter upper case.




Reply With Quote