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

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
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) %>


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

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