|
Change string to upper / lower case
| Language: |
ASP |
Unrated
Rated by 0 Users
1 Star = Horrible 5 Stars = Perfect
Rate Code Now
|
| Posted By: |
blake |
| Author Website: |
Differences between ASP and PHP |
| Posted On: |
7/13/2007 |
| Code Views: |
1227 |
This code shows how to easily use ASP to convert an entire string to the upper or lowercase version of itself.
|
<%
' initialize variables dim strName
' give variable a value strName = "Hi, I'm Blake!"
' make the string all uppercase characters strName = ucase(strName)
' the string is now: HI, I'M BLAKE!
' make the string all lowercase characters strName = lcase(strName)
' the string is now: hi, i'm blake!
' terminate the application response.end %>
View code in Textarea
This code has not been tested by Your WebCode. Use it at your own risk.
Please report any copyright violations.
|
|