asp trim function

by Ramya 2010-01-30 09:58:46

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("Name"))
Response.write(name)
%>

Tagged in:

1243
like
0
dislike
0
mail
flag

You must LOGIN to add comments