Here's my problem.. I want a msgbox.. so I'm trying to do a function in client side vbscript that passes a value to a function in server side.
Here's the code. Can someone help me figure out how to do this?
<Script language=vbscript>
delete=MsgBox("Are you sure you want to delete this record?", VBYesNo, "Delete?"
if delete=VBYes Then
varDel="True"
Else
varDel="False"
End If
OkayDelete(varDel)
</script>
<%
Function OkayDelete(varDel)
if varDel="True" Then
dim f_NowUpdate
f_NowUpdate=Request.QueryString("newid"
db1.execute("DELETE FROM bug Where BugID=" & f_NowUpdate & ""
Else
Response.Redirect "bugs.asp"
End If
End Function
Here's the code. Can someone help me figure out how to do this?
<Script language=vbscript>
delete=MsgBox("Are you sure you want to delete this record?", VBYesNo, "Delete?"
if delete=VBYes Then
varDel="True"
Else
varDel="False"
End If
OkayDelete(varDel)
</script>
<%
Function OkayDelete(varDel)
if varDel="True" Then
dim f_NowUpdate
f_NowUpdate=Request.QueryString("newid"
db1.execute("DELETE FROM bug Where BugID=" & f_NowUpdate & ""
Else
Response.Redirect "bugs.asp"
End If
End Function