Showing posts with label ucase. Show all posts
Showing posts with label ucase. Show all posts

Monday, 19 March 2012

ASP: make the first letter uppercase in a string

   


There are two ASP functions that allow us to change the case of a string: UCase and LCase.
The first change all the string in uppercase:
<%=UCase("string")%>
 The above gives us the following output:
STRING
While
<%=LCase("STRING")%>
gives us:
string

If we don't know what is the case of a string, because, for example, we get it as a query result, how can we make the string with only the first capital letter?