If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Calling a function in asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-05, 18:39
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
Calling a function in asp

Hi there,

I have a problem calling a function in asp.
I need to call this function in several part in my page and i cant seem to call it.My code is as below:

<%
function test1()
............/statement
end function
%>

<body>
<%
call test1
%>
</body>

I cant seem to call it.
Can anyone please help me on this.
Thanx a million
Reply With Quote
  #2 (permalink)  
Old 01-18-05, 19:32
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
When you call a function, I think that you want to get a value from it. In your function, do you assign the value to the function name, i.e., in your code, you need

test1 = returnedValue

If this does not give you a help, please post your code of the function?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On