Messenger in VB.NET

Last post 09-28-2012, 7:52 AM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  09-27-2012, 3:48 PM 74796

    Messenger in VB.NET

    Hello,

     

    I have a VB.NET project and when I use the example messenger call

     

    <%="<"%><%="script"%><%="src='"%><%=ResolveUrl("~/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx")%><%="'"%><%=">"%><%="<"%><%="/script"%><%=">"%><br> <imgsrc="<%=ResolveUrl("~/CuteSoft_Client/CuteChat/images/icon_invite.gif")%>" align=absmiddle><a href="###" onclick="BLOCKED SCRIPTChat_OpenMessenger()" >Messenger</a>

     

    I get errormessage. Chat_OpenMessenger not defined 

     

    Is it realy possible to integrate this with vb.net

     

    Thanks

  •  09-27-2012, 4:27 PM 74799 in reply to 74796

    Re: Messenger in VB.NET

    Hi Willemt,

     

    Please try the example page below.

     

    1. <%@ Page Language="VB" %>    
    2.     
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
    4.     
    5. <html xmlns="http://www.w3.org/1999/xhtml" >    
    6. <head id="Head1" runat="server">    
    7.     <title>messenger</title>    
    8. </head>    
    9. <body>    
    10.     <form id="form1" runat="server">    
    11.     <div>    
    12.      <%="<"%><%="script"%><%=" src='"%><%=ResolveUrl("~/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx?Chat_StartPartialMessenger=1")%><%="'"%><%=">"%><%="<"%><%="/script"%><%=">"%><br>      
    13.        <img src="<%=ResolveUrl("~/CuteSoft_Client/CuteChat/images/icon_invite.gif")%>" align=absmiddle><a href="###" onclick="Chat_OpenMessengerDialog()" >Messenger</a>    
    14.     </div>    
    15.     </form>    
    16. </body>    
    17. </html>    
     

     

    Regards,

     

    Ken 

  •  09-27-2012, 5:46 PM 74801 in reply to 74799

    Re: Messenger in VB.NET

    Thanks Ken,

     

    This was working, I have to find out how to change the Homepage insite the messenger window. But I like to find out myself first.

     

    Regards

     

    Willem 

  •  09-28-2012, 4:57 AM 74810 in reply to 74801

    Re: Messenger in VB.NET

    Ok done, 

     

    Thanks for your answers I have one last question about the messenger.

     

    I can load it no problem But I would like to have the messenger permanent in my aspx. page can I do this with a iframe? do you have a little sample for me?

     

    Thanks 

  •  09-28-2012, 7:52 AM 74814 in reply to 74810

    Re: Messenger in VB.NET

    Hi Willemt,

     

    You can use the embed mode, like the example below.

     

    1. <%@ Page Language="VB" %>  
    2.   
    3. <%@ Register Src="~/CuteSoft_Client/CuteChat/EmbedMessenger.ascx" TagPrefix="CE"  
    4.     TagName="messenger" %>  
    5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head id="Head1" runat="server">  
    8.     <title>messenger</title>  
    9. </head>  
    10. <body>  
    11.     <form id="form1" runat="server">  
    12.         <div>  
    13.             <CE:messenger ID="messenger1" runat="server" />  
    14.         </div>  
    15.     </form>  
    16. </body>  
    17. </html>  
     

    Regards,

     

    ken 

View as RSS news feed in XML