CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 text box imput ucase and transform to lowercase

Print topic Send  topic

Author Message
Rodrigo Quezada
Posted: 02/05/2004, 4:47 AM

HI, I need in CCS, texbos in from imput text in ucase and convert in lowercase.
Nicole

Posts: 586
Posted: 02/05/2004, 6:10 AM

Rodrigo,
You can use client side or server side.
On client side create control’s onChange event or form’s onSubmit event. Use Java script function to convert the entered values.
document.forms.form_name.field_name.value.toLowerCase();
If you want to change the values on server side you can do it in different ways. If you want to convert the value before displaying it on the live page use Before Show event, if the value should be converted before inserting to database use Before Build Insert/Update events
http://docs.codecharge.com/studio/html/index.html?http:...Insert.html?toc

Related ASP functions are LCase and Ucase:
Dim MyString
Dim LCaseString
MyString = "VBSCript"
LCaseString = LCase(MyString) ' LCaseString contains "vbscript".

_________________
Regards,
Nicole
View profile  Send private message
marcwolf


Posts: 361
Posted: 02/05/2004, 5:50 PM

We have done this using a little JS snippet

  
function ucase(frmObj) {  
var tmpStr;  
tmpStr = frmObj.value.toUpperCase();  
frmObj.value = tmpStr;  
}  
  
function lcase(frmObj){  
var tmpStr;  
tmpStr = frmObj.value.toLowerCase();  
frmObj.value = tmpStr;  
}  

And then in the OnFocus /OnBlur event on the Format/Event section of a control put in either

  
javascript:lcase(this);   
or
  
javascript:ucase(this);  

Both work very well and does not require a Server hit.

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.