Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner Problems calling a custom procedure 1

Status
Not open for further replies.

MEGUIA

Programmer
Sep 26, 2001
62
PR
Hi

I've created a Vb Dll and I'm creating the object from an asp, everything work's fine when I'm using one asp to collected the data and send it to the other asp but when I'm trying to call the procedure in the same asp it's doesn't worked. This is my code

<html>
<head>
<meta content=&quot;text/html; charset=unicode&quot; http-equiv=&quot;Content-Type&quot;>
<title>Call operations</title>

<script LANGUAGE=&quot;VbScript&quot;>
Option explicit
DIm outpostdb
</script>

<script ID=&quot;clientEventHandlersVBS&quot; LANGUAGE=&quot;vbscript&quot;>
Option explicit

Sub PressConnect()
On Error Resume Next
DIM pConnectTo

If Txtaddress.value = &quot;&quot; Then
MsgBox &quot;You have not entered a destination address&quot;,0,&quot;connect&quot;
Exit Sub
else
msgbox Txtaddress.value
pConnectTo = Txtaddress.value
End If
msgbox pconnecto
outpostdb.cmdStartSession pconnecto

set outpostDB = nothing
end sub

Sub window_onload
set outpostDB = nothing
end sub
</script>


</head>


<BODY>&nbsp;
<INPUT type=button id=&quot;buttConnect&quot; style=&quot;LEFT: 18px; WIDTH: 200px; CURSOR: hand; POSITION: absolute; TOP: 74px; HEIGHT: 30px&quot; onclick=&quot;PressConnect()&quot; value=&quot;Connect&quot; title=&quot;Connect&quot;>
<INPUT id=Txtaddress style=&quot;LEFT: 18px; WIDTH: 202px; TOP: 18px; HEIGHT: 30px&quot;
size=26 name=text1>
</BODY>
</HTML>


 
First of all, I don't see the code where you create outpostDB.

Second of all, this code runs on the client (in the browser). Your dll is on the server. HTTP is a stateless environment. The client (web browser) and the server do not hold a connection thus you do not have access to the VB dll.
Thanks,

Gabe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top