10-20-2011, 08:23 PM | #1 |
Registered User
Join Date: Mar 2011
Posts: 267
|
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.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
04-30-2013, 06:29 AM | #2 |
Registered User
Join Date: Dec 2012
Location: Delhi
Posts: 535
|
i do not know ...
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
11-06-2013, 02:15 AM | #3 |
Registered User
Join Date: Sep 2013
Posts: 9
|
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 > "
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
01-02-2014, 12:10 AM | #4 |
Registered User
Join Date: Nov 2013
Location: Surat
Posts: 971
|
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.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , |
03-11-2014, 11:44 PM | #5 |
Registered User
Join Date: Nov 2013
Posts: 92
|
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 > "
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
06-05-2015, 05:53 AM | #6 |
Registered User
Join Date: Jun 2015
Location: canada
Posts: 29
|
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.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|