wilberforce2
IS-IT--Management
Hello all
I am new to ajax however I have got the server sites scripts responding nicely. I was wondering Is it possible to call separate functions within the ASP page? If not what is the procedure for more complex programs do you have separate files for separate commands?
I have tried using a select statement that reads a post command to call sub programs and functions but unfortunately it don’t work.
I am new to ajax however I have got the server sites scripts responding nicely. I was wondering Is it possible to call separate functions within the ASP page? If not what is the procedure for more complex programs do you have separate files for separate commands?
I have tried using a select statement that reads a post command to call sub programs and functions but unfortunately it don’t work.
Code:
<%
'if request.Form("Calling") <> "" then
SELECT case request.form("Calling")
Case "sayhello"
sayHello
Case "sayGoodbye"
sayGoodbye
case else
response.Write("noute")
End Select
'End if
sub sayHello
Response.write("ASP Hello")
end Sub
sub sayGoodbe
Response.write("ASP Goobye")
End Sub
%>