I have a simple profile table with UserID, FirstName, LastName, and CompanyID with a Foreign Key to aspnet_Users on UserID.
I have set up a custom CreateUserWizard to collect the extra profile information. This all works fine.
Now I would like to have a simple page that displays:
Your Company ID is (CompanyID) , (UserName).
Your Name is (FirstName) (LastName).
Here is my code behind:
Imports ProfileCommon
Partial Class UsersOnly_DisplayProfile
Inherits System.Web.UI.Page
Protected Sub Page_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
TextBox1.Text = Profile.FirstName
End If
End Sub
End Class
Here is my page:
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeF ...
Go to the complete details ...