hi please I have managed to create a user and allow a user to login
however Im confused as to how I can use the profilecommon class to save user info, please assist my web config is also listed below
Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click
Dim userName As String = txtUserN.Text
If Membership.ValidateUser(txtUserN.Text, txtPass.Text) Then
'Response.Redirect("Home.aspx")
FormsAuthentication.RedirectFromLoginPage(UserName, False)
End If
Me.lblMessage.Text = "Invalid Credentials"
End Sub
<anonymousIdentification enabled="true" />
<profile defaultProvider="SqlProvider" >
<providers>
<add
name="SqlProvider"
connectionStringName="SqlServices"
applicationName="ProfileBaseApplication"
type="System.Web.Profile.SqlProfileProvider" />
</providers>
<properties>
<add name="ZipCode" allowAnonymous="true" />
<add name="RecentSearchList"
type="System.Collections.Specialized.StringCollection"
serializeAs="Xml"
allowAnonymous="true" />
<add name="Name" type="System.String"/>
<!--<add name="userName" type="String" />
<add name="NumVisits" type="System.Int32"/>
<add name="Gender" type="bool"/>
<add name="Birthday" type="System.DateTime"/>-->
</properties>
</profile>