PDA

Click to See Complete Forum and Search --> : easy ASP question


Namo
Jun 22nd, 2000, 07:53 PM
<!-- #include filename -->

I know ASP - but what is it? why ppl write it - how to use it? can u give me an example?

Thanks

Ianpbaker
Jun 22nd, 2000, 08:21 PM
The easiest way to describe it is using form validation.

Say you have 6 different forms that you need to validate using Server-Side validation (ASP). You have twenty different functions that are used on all of the forms. Instead of having the 20 functions on every page, you can create one asp page that just has the functions in it, And in each form validation page have the #include to that asp page. Thus saving space and time.

Hope this helps

Ian

compuGEEK
Jun 23rd, 2000, 05:15 AM
You use include files the same way you would use a code module in VB. The code in an include file is reusable, just like the code in a module.

Here is a tutorial on using include files:

http://www.4guysfromrolla.com/webtech/faq/Beginner/faq6.shtml