asp trim function

by Ramya 2010-01-30 09:57:53

Trim() in asp:

Sometimes whitespaces may cause an issue while storing the given input values. To aviod those issues trim whitespaces using Trim() in asp.
Trim(string)


Example:
<%Dim email, subject, comments, first_name, last_name
name = Trim(Request.Form("FirstName"))
Response.write(name)
<%

Tagged in:

691
like
0
dislike
0
mail
flag

You must LOGIN to add comments