Monday 21, May 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    About Us    |    Contact Us

ASP Procedures

Procedures or subroutines are used to perform an action. A subroutine starts with the keyword SUB then subroutine name. The code is written inside the subroutine before ending it with the keywords END SUB. Subroutines cannot return a value.

Example:

<%

SUB PrintMsg
response.write "I am in subroutine"
END SUB
response.write("Calling Subroutine <br />")
PrintMsg

%>

Passing Arguments:

<%

SUB PrintMsg (strMsg)
response.write strMsg
END SUB

response.write("Calling Subroutine <br />")
PrintMsg ("Passing argument to subroutine")

%>

 
     
   
ASP Tutorial
 
  ASP Introduction
ASP Introduction
  ASP Syntax
ASP Syntax
  ASP JavaScript
ASP JavaScript
  ASP Variables
ASP Variables
  ASP Arrays
ASP Arrays
  ASP If Statement
ASP If Statement
  ASP Procedures
ASP Procedures
  ASP Functions
ASP Functions
  ASP Sessions
ASP Sessions
  ASP Cookies
ASP Cookies
  ASP Application Object
ASP Application Object
  ASP Forms
ASP Forms
  ASP Comments
ASP Comments
  ASP Email
ASP Email
  ASP ADO
ASP ADO
  ASP File
ASP File
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download SEO Project Template Ebook SEO Project Template
   
Download Structure and Interpretation of Computer Programs  Ebook Structure and Interpretation of Computer Programs
   
Download Make A Living Off Your Blog Ebook Make A Living Off Your Blog
   
Download C Sharp Introduction Ebook C Sharp Introduction
   
Download Developing Web Applications with Ant  Ebook Developing Web Applications with Ant
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz