Creating Chat Rooms from Code

Last post 04-23-2007, 8:49 AM by swelborn. 1 replies.
Sort Posts: Previous Next
  •  04-23-2007, 4:39 AM 28679

    Creating Chat Rooms from Code

    Hi,
     
    Our application requires us to be able to create chat rooms from code and then to allow a specific group of members to access this chat room until they have finished that they are doing, at which point the rooms is destroyed.
     
    I have been hunting through the samples and documenation for how to do this , but no luck. Does anyone have an example of how to do any elements of the above.
     
    Thanks for any assistance.
     
    KeithT
  •  04-23-2007, 8:49 AM 28682 in reply to 28679

    Re: Creating Chat Rooms from Code

    I had to do the same thing.

    Basically what I did was mimick the way cutesoft did their's by copying the code-behind (and logic) in the Lobbies.aspx and LobbyItem.aspx files. I created my own pages and controls in the exact same way they did theirs.  These can be found in the 'CuteSoft_Client\CuteChat\Admin' directory.

    I basically just wrote to the CuteChatLobby table myself, that creates a chat room. I would think that if you wanted to destroy it afterwards  you would just remove the row from that table based on the LobbyId.

    Hope that helps a little.

View as RSS news feed in XML