Error Integration CuteChat in ASP.NET

Last post 10-08-2010, 10:19 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-02-2010, 9:10 AM 64308

    Error Integration CuteChat in ASP.NET

    Hi,
    I am trying to integrate CuteChat into an ASP.NET website, which uses a custom Authentication mechanism. I have created a class in global.asax and override some of the methods.
    Then in a page I have added this:
    1. if (CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator)  
    2. {  
    3.         //Add a new URL to a place holder.  

     but the only method which is run in global.asax is this:
    1. public override AppChatIdentity GetLogonIdentity()  
    2.         {  
    3.             if (UserInfo.Current == null)  
    4.             {  
    5.                 return null;  
    6.             }  
    7.             return new AppChatIdentity(UserInfo.Current.UserName, false, UserInfo.Current.UserAccountID.ToString(), HttpContext.Current.Request.UserHostAddress);  
    8.         } 
     which makes the if statement to evaluate to false and hence the URL does not show up.
     
    Can anyone help me with this one?
    Thanks.
     
    P.S: I am using the version of CuteChat which I downloaded from this web site.
  •  10-08-2010, 10:19 PM 64362 in reply to 64308

    Re: Error Integration CuteChat in ASP.NET

    Hi sheperson,
     
    Can you explain your requirement on detail? 
     
    I saw your code, do you want to show something to the user if the user is "Super user/Administrator"?  Like the admin control panel link?
     
    Keep me posted.
     
    Regards,
     
    ken 
View as RSS news feed in XML