Re: Integrate Chat to an existing website developed in VB

  •  01-06-2010, 5:27 AM

    Re: Integrate Chat to an existing website developed in VB

    Hi moligane,
     
    Vb embed example
     
    1. <%@ Page Language="VB" %>   
    2.   
    3. <%@ Register TagPrefix="CuteChat" TagName="EmbedChannel" Src="CuteSoft_Client/CuteChat/EmbedChannel.ascx" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5.   
    6. <script runat="server">   
    7.            
    8.     Private Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs)   
    9.         If Not Me.IsPostBack Then  
    10.             If CuteChat.ChatApi.GetLobbyInfoArray().Length > 0 Then  
    11.                 EmbedChannel1.Visible = True  
    12.             Else  
    13.                 EmbedChannel1.Visible = False  
    14.             End If  
    15.         End If  
    16.     End Sub  
    17. </script>   
    18.   
    19. <script>     
    20.     Embed_Place='Lobby-1';   
    21. </script>   
    22.   
    23. <html xmlns="http://www.w3.org/1999/xhtml">   
    24. <head runat="server">   
    25.     <title>Untitled Page</title>   
    26. </head>   
    27. <body>   
    28.     <form id="form1" runat="server">   
    29.         <CuteChat:EmbedChannel ID="EmbedChannel1" runat="server"></CuteChat:EmbedChannel>   
    30.     </form>   
    31. </body>   
    32. </html>  
    Regards,
     
    ken
View Complete Thread