0

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>

Edited by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.