Q:

Adding numbers in asp

How do I add the following strings to show the total in asp page?
<%=moviesA%>
<%=moviesB%>

Currently, moviesA = 1000 and moviesB = 400 (both strings are dynamic). I want to display "There are currently 1400 movies in our archives."
Thanks in advance!

A:

To do this you would first add the two numbers and the use Cstr() to change it to a string for writing. 
Example:
totalmovies=moviesA+moviesB
response.write ("There are currently " + cstr(totalmovies) + " movies in our archives.")

Note if moviesA and moviesB are Strings already then you need to change them to int before doing the addition then line 1 would be:
totalmovies=cint(moviesA) + cint(moviesB)

Hope it helps.

