2864Functions and Subprocedureshttp://www.codefixer.com/tutorials/subs_and_functions.aspFunctions and subprocedures have many similarities:
They can be called or invoked from anywhere within your script. A function or subprocedure can be reused as many times as required, thus saving you time writing out repetitive code and making for a less clustered looking page.
Both are blocks of self contained code that can accept arguments. Both will only run when called or invoked from code elsewhere and will not run automatically when the page is loaded.ASP > Tips and Tutorials > Introduction to ASPOct 10, 2006
ASP stands for Active Server Pages. ASP is a server side technology which is used to display dynamic content on the web pages. ASP is becoming popular day by day as the favorite server side technology. ASP in itself isn't a language actually, instead it uses VBScript or JScript to display dynamic content. ASP is more of a technology used by VBScript / JScript on the server side. So if you know VBScript or JScript you can start creating .ASP pages right now.
Microsoft provides one DLL (c:winntsystem32scrrun.dll) for both IIS Web server side scripting and IE Web browser client side scripting with several classes
Our server may allow us to use ASP only in the "cgi-bin" directory or in all the site. Depending on this fact we may need to change the path to the files we are manipulating. Here, we will consider a server which allows using ASP in the entire site.
Below are two examples of how to deal with bad words. Example 1 receives text entered into a form textfield called 'txtComments'. The code strips out any bad word(s) that you choose to enter into the array 'badChars'. In this script we have deemed that the words 'rubbish', 'crap' and 'shit' are unacceptable and should be removed.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.