|
-
Mar 27th, 2001, 04:09 AM
#1
Thread Starter
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|