Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   ASP (http://siteownersforums.com/forumdisplay.php?f=11)
-   -   Functions in .ASP (http://siteownersforums.com/showthread.php?t=51924)

wryfhk22 10-20-2011 08:23 PM

Functions in .ASP
 
Hi,

I'm completely new to .asp - my previous system was completely html, but now we've got a new system where all the pages are .asp pages.

I need a text function, and I'm wondering if it's possible to have some kind of library that I can put functions in and then call the functions from within the .asp page.

Is that possible? If so, how would I go about writing the function, creating the library, and referencing the library/functions from the .asp page?

Thanks.

Kunalmathur 04-30-2013 06:29 AM

i do not know ...

webfantasy 11-06-2013 02:15 AM

Sub program that can take data called parameters (optional), execute a computation (task) and return a value.
Function is a reusable piece of code. By reusable we mean that you need to make only once but you can use it many times. for example, a function of addition on a calculator. the keywords for making a function are function, return, end function. as functions, sub routines and classes are the part of VB.net, thats why we will use a separat block for it, instead of using asp block. the tag for this block is "< SCRIPT > "

Die_heart 01-02-2014 12:10 AM

Sub program that can take data called parameters (optional), execute a computation (task) and return a value.
Function is a reusable piece of code. By reusable we mean that you need to make only once but you can use it many times. for example, a function of addition on a calculator.

alligatortek001 03-11-2014 11:44 PM

Sub program that can take data called parameters (optional), execute a computation (task) and return a value.
Function is a reusable piece of code. By reusable we mean that you need to make only once but you can use it many times. for example, a function of addition on a calculator. the keywords for making a function are function, return, end function. as functions, sub routines and classes are the part of VB.net, thats why we will use a separat block for it, instead of using asp block. the tag for this block is "< SCRIPT > "

BenjaminMayer 06-05-2015 05:53 AM

Functions in ASP:Functions provide a way to create reusable code and avoid re-writing the same block of code when we do the same task every time. If we don't have any function in ASP page then the pages are executed from top to bottom. By writing function we can use it when it is required thus it saves time and our page look less clustered. Writing function in ASP is almost similar to writing in Visual Basic.


All times are GMT -7. The time now is 01:40 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.