|
-
May 8th, 2001, 01:24 PM
#1
Thread Starter
Lively Member
VB script Question
<P><INPUT name="Update_Records" onclick="Update_Records" type="Button" value="Update Data"></P>
<%
Function Update_Records_onClick()
Set Cmd = server.CreateObject ("ADODB.Command")
Set Cmd.ActiveConnection=MyConnection
...
...
...
Response.write "Records are updated"
%>
I want to use a command button, when clicked, should execute the function. Well nothing is happening, it is not calling the function. What am I doing wrong??
In the code for the button, onclick: I tried writing "Update_Records", Update_Records, Update_Records(), "Update_Records()".... Nothing worked
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
|