Custom data adapter
How do I override these methods to use my data from database?
public override string GetUserDisplayName(string uniquename)
Return user's display name.
public override string[] ListUserUniqueName()
Retrieves all the user's unique names in the database.
public override bool IsAdministrator(string useruniquename)
Check the user is an administrator or not.
public override string[] SearchUserUniqueNameByDisplayName(string name)
Return an array of user names containing the input string.
public class MyUserAdapter : CuteSoft.Chat.UserAdapter { }
public override string GetUserUniqueName(System.Web.HttpContext context)
I need to use my database "MainDB" table "UserInfo" and username column "Username", Password column "Password" so that all my website members are able to use the application using their existing logins.
|