ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

Script Output:

Here are a couple examples of calling the function:

1 + 2 = 3

534 + 3142 = 3676

ASP HTML Download            FAQ

ASP.NET Version

Functions reduce redundant code. When changes need to be made (and they always do!), it allows you to make the change once and have it take effect everywhere immediately.

The above function takes two inputs, of type Integer, called "intA" and "intB". It takes the two values and adds them together. It then returns this value to the line that called the function.

To call our function named "Add" you do the following:

<%= Add(1, 1) %>


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers