Where's my logo?
Recent Posts
  • CodeIgniter Community Voice - HOWTO: Set up a CodeIgniter project in Subversion CodeIgniter Community Voice - HOWTO: Set up a CodeIgniter project in Subversion

    EllisLab is blessed with two of the greatest communities that can be found anywhere on the internet in ExpressionEngine and more recently CodeIgniter.  Despite being a relative newcomer to the scene, the people attracted to CodeIgniter are am..

  • CodeIgniter 1.7.0 Released CodeIgniter 1.7.0 Released

    Code Igniter Version 1.7 has been released.  This version contains a number of new features and enhancements, as well as many small improvements and bug fixes. For a list of all changes please see the

  • CodeIgniter Community Voice - HOWTO: Set up a CodeIgniter assignment in Subversion CodeIgniter Community Voice - HOWTO: Set up a CodeIgniter assignment in Subversion

    EllisLab is blessed with two of the greatest communities that can be found anywhere on the internet in ExpressionEngine and more recently CodeIgniter.  Despite being a relative newcomer to the scene, the people attracted to CodeIgniter are am..

  • CodeIgniter Community Voice - Generating PDF files using CodeIgniter CodeIgniter Community Voice - Generating PDF files using CodeIgniter

    EllisLab is blessed with two of the greatest communities that can be found anywhere on the internet in ExpressionEngine and more recently CodeIgniter.  Despite being a relative newcomer to the scene, the people attracted to CodeIgniter are am..

  • CodeIgniter Community Voice - Lee?s Lost Bet CodeIgniter Community Voice - Lee?s Lost Bet

    EllisLab is blessed with two of the greatest communities that can be found anywhere on the internet in ExpressionEngine and more recently CodeIgniter.  Despite being a relative newcomer to the scene, the people attracted to CodeIgniter are am..

Recent Comments
  • Anggara Says : menurut mas, setuju engga..
  • - s L i K e R s - Says : waduh itu apaan ya, gak n..
  • budex Says : outputnya variabel keywor..
  • indra Says : thanks, but it really dep..
  • Xrvel Says : Nice trick, bro
  • bunk Says : mas, minta virus scannya ..
  • d. scully Says : very informative. thank y..
  • xhinsx Says : rancu banget definisi por..
  • zigouras Says : ntar pertandingan tinju d..
  • kaka Says : emang otak anggota dwn qt..
  • Squeaky Says : That is a very simple thi..
  • Sacx from Dofollow.us Says : I heard about this scanda..
  • mr.x Says : kolam renang indoor dmn y..
  • heloo Says : l;dfkgdf dfgfdg dfgfdg
  • SweetWinter Says : Thanks!
  • OBeh Says : katanya tetep jalan tuh, ..
  • Korekapi Says : disini ga bisa konek ke r..
  • Korekapi Says : di tempatku kok ga bisa m..
  • Arief Says : lebih bagus dari lagu asl..
  • White Bunny Says : Diliat dari 2 sisi ya gak..
Random Articles
Functions and Subroutines in ASP
Date 31/03/2008 19:56 Author admin Hits 92
Print Pdf RSS
Functions and Subroutines in ASP plus articles and information on Web-Development


Functions and Subroutines in ASP

If you read our Tutorial on Include Files (SSI) then you learned how to encapsulate ASP code within include files and the benefits it brings us.

As developers, we should endeavour to make our lives easier wherever possible... no one wants to re-invent the wheel after all.

Functions and Subroutines exist to not only save us time, but to bring power to our ASP.

They are just another way of encapsulating code, but have a lot more functionality than just 'saving some code for later'.

First, let's look at Functions... Imagine a balloon salesman in the street. We've all seen them they require one piece of information when you buy a balloon, the colour.
Let say we asked for a red balloon... The balloon salesman armed with this 'information' then does a pretty basic action... he hands you the balloon. The balloon you received is a direct result of the information you gave the balloon seller.

Functions are just the same... they return to you a value based on the information you provided. Lets look at an example Function: -


Related Article:
RankRankRankRankRank
There are no comments.