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.