Hi rtbike,
Please try the example code below to update the chat room
- <%@ Page Language="C#" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
- protected void btnUpdate_Click(object sender, EventArgs e)
- {
- foreach (CuteChat.LobbyInfo lobby in CuteChat.ChatApi.GetLobbyInfoArray())
- {
- if (lobby.Lobby.Integration == "" || lobby.Lobby.Integration == null)
- {
- if (lobby.Lobby.Title == "MyRoomName")
- {
- CuteChat.IChatLobby lobby2 = CuteChat.ChatApi.GetLobby(lobby.LobbyId);
- lobby2.Title = "New Chat room";
- CuteChat.ChatApi.UpdateLobby(lobby2);
- }
-
-
- }
- }
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Untitled Page</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Button ID="btnUpdate" runat="server" Text="Update Chat room" OnClick="btnUpdate_Click" />
- </div>
- </form>
- </body>
- </html>
Regards,
Ken