Keiko
Mar 27th, 2001, 03:09 AM
Dear all,
How to define a sub or function in ASP environment?
For e.g. file name is test.asp
When I click the "cmdAnswer" button, I want it to call
"Answer" procedure/sub/function
The code below doesn't work. It always prompts me
"Answer is undefined".
Can anybody help me on this?
<%
Sub Answer
Response.Write ("Hello World")
End Sub
Response.Write ("<input type=button value=AnswerMe name=cmdAnswer onClick='Answer'>")
%>
Thanks in advance
Keiko
How to define a sub or function in ASP environment?
For e.g. file name is test.asp
When I click the "cmdAnswer" button, I want it to call
"Answer" procedure/sub/function
The code below doesn't work. It always prompts me
"Answer is undefined".
Can anybody help me on this?
<%
Sub Answer
Response.Write ("Hello World")
End Sub
Response.Write ("<input type=button value=AnswerMe name=cmdAnswer onClick='Answer'>")
%>
Thanks in advance
Keiko