Link to home
Start Free TrialLog in
Avatar of Member_2_5230414
Member_2_5230414

asked on

How to pull profile information within vb.net membership

I have stored a firstName and Surename in the profile but do not know who to retrieve it?

  Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim firstName As String = DirectCast(CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("firstName"), TextBox).Text
        Dim lastName As String = DirectCast(CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("lastName"), TextBox).Text

        Profile.SetPropertyValue("userName", firstName & " " & lastName)
    End Sub

Open in new window

Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of Member_2_5230414
Member_2_5230414

ASKER

i tried



    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Label1.Text = Profile.firstName


    End Sub

Open in new window


but it shows nothing
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial