Try our conversational search powered by Generative AI!

Custom Authentcation via Login Control



I am running some custom authentication code within the standard .net login control.

I have the code being called correctly and the user is validating correctly via:

Membership.ValidateUser(txtUserName.Text, txtPassword.Text)

From this point I want to retrieve a custom EPiServerProfile property e.g.


My question is, how do I associate the 2 when within the

<asp:Login onauthenticate event

Thanks a lot

Aug 04, 2009 12:45

I'm not sure I understand the question, but I interpret it as a desire to get a value from the EPiServerProfile of the user trying to log on? If the eventargs at hand doesn't include the username, you can check the UserName property of the Login control. The call EPiServerProfile.Get with that username.

Aug 04, 2009 12:56

Hi Magnus,

Ha ha, for some reason I must have missed that in the sdk.

Thanks a lot


Aug 04, 2009 14:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.