Support forums
in

Can I go from login straight to a chat room?

Last post 03-21-2014, 9:36 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  03-20-2014, 2:31 PM 80119

    Can I go from login straight to a chat room?

    Hello,I have downloaded the stand alone demo of the chat for the web and it works. But when I login it goes to a page before going into the room. I only want to use one chat room and also have them go straight to the room from logging in. How can I do this?

     

    Thanks,

    Warren

     

  •  03-21-2014, 9:36 AM 80127 in reply to 80119

    Re: Can I go from login straight to a chat room?

    hi,

     

    Please open the login page "Login.aspx", find section below

     

    1. if (this.DoLogin(this.txtUsername.Text, this.txtPassword.Text))  
    2.             {  
    3.                 FormsAuthentication.RedirectFromLoginPage(this.txtUsername.Text, this.chkPersistentPassword.Checked);  
    4.                 //this.Response.Redirect("~/Default.aspx");  
    5.             }  
     

    You can redirect to the chat room page in the code above by asp.net method "Redirect()", like below. The url should change to your own chat room page url.

     

    1. if (this.DoLogin(this.txtUsername.Text, this.txtPassword.Text))  
    2.             {  
    3.                 FormsAuthentication.RedirectFromLoginPage(this.txtUsername.Text, this.chkPersistentPassword.Checked);  
    4.                 this.Response.Redirect("http://localhost:14462/CuteChatAndMessenger/CuteSoft_Client/CuteChat/Channel.Aspx?Place=Lobby-1");  
    5.             }  
     

    Regards,

     

    Ken 

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems