Hi all,
i was wondering if anyone knew how to make a button for a site (more specifically, for my forum) which allows me to add a contact to my contact list. I currently have the following:
- Imports CuteSoft.Chat
-
- Partial Class Support_addbuddy
- Inherits System.Web.UI.Page
-
- Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
-
-
- If Request.QueryString("memberID") <> Request.QueryString("BuddyID") Then
-
- Dim senderID As Int32 = UserInfoHelper.GetCuteIMUserObjectIDByProgramUserID(Request.QueryString("memberID"))
- Dim buddyID As Int32 = UserInfoHelper.GetCuteIMUserObjectIDByProgramUserID(Request.QueryString("buddyID"))
- Dim senderChatUserID As Int32 = UserInfoHelper.GetCuteChatUserIDByCuteIMObjectID(senderID)
- Dim buddyChatUserID As Int32 = UserInfoHelper.GetCuteChatUserIDByCuteIMObjectID(buddyID)
- Try
- ChatApi.AddContact(senderChatUserID, buddyChatUserID)
- ChatApi.SyncContacts(senderID, True)
- ChatApi.SyncContacts(buddyID, True)
-
- Catch ex As Exception
- ReportError(ex)
- End Try
- End If
-
- End Sub
-
- End Class
For some reason it doesn't work. Please advise.
Thanks!