How to pull profile information within vb.net membership

Member_2_5230414
Member_2_5230414 used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:

Author

Commented:
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
Most Valuable Expert 2012
Top Expert 2014
Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial