asked on
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
ASKER
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label1.Text = Profile.firstName
End Sub
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx
And there is a GetPropertyValue method as well
http://msdn.microsoft.com/en-us/library/system.web.profile.profilebase.getpropertyvalue.aspx