Customize the Custom Profile Provider?

Last post 08-08-2008 10:40 AM by griff303. 2 replies.

Sort Posts:

  • Customize the Custom Profile Provider?

    08-06-2008, 4:40 PM
    • Contributor
      2,805 point Contributor
    • griff303
    • Member since 02-03-2004, 11:53 AM
    • Posts 735

    I have created the customer profile provider already and it works excellent, but I can't use the standard login template. I have customized mine and need to use the username as the billphone, password is fine and an additional field for GetPropertyValues function in the Profile class. I have tried to add an additional  paramter to this and of course it comes as no avail.

    - km
    ______________________________________
    "always here and always forever"
  • Re: Customize the Custom Profile Provider?

    08-07-2008, 9:40 AM
    • Star
      14,321 point Star
    • yasserzaid
    • Member since 09-22-2007, 9:10 PM
    • Egypt
    • Posts 2,586

    Hi

    check this link it will help you

    http://aspnet.4guysfromrolla.com/articles/091207-1.aspx

    Good Luck

  • Re: Customize the Custom Profile Provider?

    08-08-2008, 10:40 AM
    • Contributor
      2,805 point Contributor
    • griff303
    • Member since 02-03-2004, 11:53 AM
    • Posts 735

    Ok, I don't quite seem to get where I can change ther user context setting. In my default page I am using a login control in which I use the username field for the BAN and have added my own fields for the BTN. In the authenticate function I add the username context if the BTN if both are entered.

    Default.aspx

    Protected Sub referralLogin_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles referralLogin.Authenticate

    1    Dim context As SettingsContext = New SettingsContext
    2   
    3    context.Add("UserName", referralLogin.UserName.Trim)
       

    ProfileProvider.vb

    1 Public Overrides Function GetPropertyValues(ByVal context As System.Configuration.SettingsContext, ByVal settingsProperties As System.Configuration.SettingsPropertyCollection) As System.Configuration.SettingsPropertyValueCollection 2 Dim _userName As String = CType(context("UserName"), String)  When it goes to grab this information in the profileprovider GetPropertyValues function it still uses the BAN.Where is the proper area I can actually change this to grab the BTN rather than the BAN? It seems to not care since I am using the customized login control.

    - km
    ______________________________________
    "always here and always forever"
Page 1 of 1 (3 items)