Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 10-20-2011, 08:23 PM   #1
wryfhk22
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.
wryfhk22 is offline   Reply With Quote

Old 04-30-2013, 06:29 AM   #2
Kunalmathur
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.
Kunalmathur is offline   Reply With Quote
Old 11-06-2013, 02:15 AM   #3
webfantasy
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.
webfantasy is offline   Reply With Quote
Old 01-02-2014, 12:10 AM   #4
Die_heart
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.
,
Die_heart is offline   Reply With Quote
Old 03-11-2014, 11:44 PM   #5
alligatortek001
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.
alligatortek001 is offline   Reply With Quote
Old 06-05-2015, 05:53 AM   #6
BenjaminMayer
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.
BenjaminMayer is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:41 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.