IIS and ASP do not support Event handling. You might look and see if the
new .NET does, I haven't checked yet.
-----Original Message-----
From: ravindra bommineni [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 26, 2001 10:44 PM
To: [EMAIL PROTECTED]
Subject: [JDEV] need help
hi all
i wrote one VB program to connect to jabber server
using JabberCOM.it is working fine. program is like
this.
Private Sub Command1_Click()
Dim Jsession As JabberSession
Set Jsession = New JabberSession
Jsession.Username = Text1
Jsession.Password = Text2
Jsession.Resource = Text3
Jsession.Server = Text4
If Check1.Value <> 0 Then
Jsession.DoConnect True, jatDigest
Else
Jsession.DoConnect False, jatDigest
End If
Debug.Print Jsession.Active
End Sub
it is showing Jsession.Active as true if it is able to
connect otherwise it is showing as false.it looks fine
but i wrote one IIS Active Server Page file like
below.
<HTML><HEAD><TITLE>Login screen</TITLE>
<BODY leftMargin=0 topMargin=0>
<TABLE width="100%">
<TBODY>
<%
'try to connect to the server
If Request("Connect") = "yes" Then
Set Jsession =
Server.CreateObject("JabberCom.JabberSession")
Jsession.Username =
Request("uName")'"[EMAIL PROTECTED]"
Jsession.Password = Request("pass")'"sirisha"
Jsession.Resource = Request("resource")'"CloudChat"
Jsession.Server = Request("server")'"jabber.org"
'If user is new
If Request("newone") = "on" Then
Jsession.DoConnect True,jatDigest
'If user is already registered one
Else
Jsession.DoConnect False,jatDigest
End If
Response.Write Jsession.Active
'Sub OnConnect()
' Response.Write "yes"
'End Sub
End If
%>
<FORM METHOD=POST ACTION="login.asp">
<TR>
<TD align=Right>UserName:</TD>
<TD><Input type=text Name=uName></TD>
</TR>
<TR>
<TD align=Right>Password:</TD>
<TD><Input type=password Name=pass></TD>
</TR>
<TR>
<TD align=Right>Resource:</TD>
<TD><Input type=text Name=resource
value="CloudChat" readonly></TD>
</TR>
<TR>
<TD align=Right>Server:</TD>
<TD><Input type=text Name=server></TD>
</TR>
<input type=hidden name = "Connect"
Value="yes">
<TR>
<TD align=Right><INPUT TYPE=Checkbox
NAME="newone"></TD>
<TD>I am new User</TD>
</TR>
<TR>
<TD align=Right> </TD>
<TD><INPUT TYPE=SUBMIT
VALUE="Connect"> <Input type=RESET
VALUE="Reset"></TD>
</TR>
</FORM>
</TBODY>
</TABLE>
</BODY>
</HTML>
but problem here every time
Response.Write Jsession.Active is showing False.why
every time it is showing as "False".why it is not able
to connect to server?please help me on this asap.
Thanks
Ravindra
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev