Changing text from lower case to upper case and vise versa in ASP

We can change the case of the text present inside a string from lower to upper case or from upper case to lower case letters.

To change all the lower case letters to upper case we have to use Ucase() function, same way to change all upper case text present in the string to lower case we have to use Lcase() function.

Lower case letter to upper case letter

Dim my_string
my_string="Welcome to Plus2net.com"
Response.Write ( my_string )
my_string=Ucase(my_string)
Response.Write "<br>After changing to upper case  = " & my_string
The output of above code is here
Welcome to Plus2net.com
After changing to upper case = WELCOME TO PLUS2NET.COM

Upper case to lower case

Now let us try with Lcase() function. Here is the example ( of changed line only. )
 my_string=Lcase(my_string)
The output of this command is here
Welcome to Plus2net.com
After changing to upper case = welcome to plus2net.com

ASP Home
plus2net.com





We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer