+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Custom Field For TelerikMembershipProvider

Custom Field For TelerikMembershipProvider

5 posts, 0 answered
  1. aung maw
    aung maw avatar
    14 posts
    Registered:
    07 Apr 2006
    13 Mar 2009
    Link to this post
    Hi all, I'm trying to a field 'IndexNo' into telerik_Users table.  How can I add new function named GetUser_ByIndexNo into TelerikMembershipProvider? Please let me know.

    Thanks,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Mar 2009
    Link to this post
    Hello aung maw,

    Sitefinity uses standard ASP.NET membership. Everything that applies to membership in ASP.NET also applies to Sitefinity. You can find more information about ASP.NET membership here:
    http://msdn.microsoft.com/en-us/library/ms998347.aspx. Instead of saving all profile properties in a table column, the TelerikProfileProvider saves each profile property as a different record in the table. 
    If you have planned some advanced optimizations you should create a custom provider that handles profile properties in a more specific manner.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. aung maw
    aung maw avatar
    14 posts
    Registered:
    07 Apr 2006
    14 Mar 2009
    Link to this post
    Thanks Ivan,  The issue with Profiles is that I cannot make a search by 'IndexNo'.  For example, I wanted to search UserId by IndexNo and Profile will not allow me to do. 

    Regards,
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Mar 2009
    Link to this post
    Hi aung maw,

    On the other hand Membership provides options for searching only by UserName and Email address, so I am not sure whether your requirement is possible.

    Regards,
    Ivan Dimitrov
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    17 Mar 2009
    Link to this post
    this is just an idea, but the standard asp.net membership has a field called "Comment" for each user. I don't know if sitefinity uses this for anything, but you could use this to store the data if you don't want to modify the asp.net db structure...

    once you do that you could use an external db query (separate from the provider) to retrieve the ID of the associated user with that number in their comment field. It's a hack to be sure, but it might suit your needs if they are simple...

    hope this was helpful!
Register for webinar
5 posts, 0 answered