News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

ASP Special Characters

Started by thiruvasagamani, Aug 19, 2008, 03:23 PM

Previous topic - Next topic

thiruvasagamani

ASP Special Characters

All the special characters that you see when programming ASP can be a little overwhelming at first. This lesson is aimed at providing a succinct look at the most common special characters that occur within ASP. This lesson will cover the following character/symbol combinations:

    * &
    * '
    * _
    * :
    * .
    * <%...%>
    * <%=...%>


That's pretty ugly and confusing to look at, so let's get right in to the details of each of the symbols and see what they mean.

String Concatenation: The Ampersand &

You can combine strings with the ampersand character. It acts as a glue between one or more strings to create one large string. See our Strings Lesson for a more detailed look at strings and string concatenation. Below is an example of the ampersand concatenating two strings.

ASP Code:

<%
Dim myString
myString = "One String"
myString = myString & " another string"
Response.Write(myString)
%>


Display:

One String another string
Thiruvasakamani Karnan