Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7931729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:48:33+00:00 2026-06-03T20:48:33+00:00

I am working on a project where I got a task to create a

  • 0

I am working on a project where I got a task to create a user (using the CreateUserWizard control). I have to save the user in a specific table in the SQL Server database.

Also create a login (using the Login control) and after the login is authenticated it should hold the profile information.

So far, I have created CustomProfile that inherites the ProfileBase. Also have created 3 aspx pages.

  1. Login.aspx
  2. CreateUser.aspx
  3. Default.aspx

My CustomProfile looks like the following:

public class UserProfile : ProfileBase
{
    static public UserProfile CurrentUser
    {
        get
        {
            return (UserProfile)(ProfileBase.Create(Membership.GetUser().UserName));
        }
    }

    public string FirstName
    {
        get { return (string)base["FirstName"]; }
        set { base["FirstName"] = value; Save(); }
    }


    public string LastName
    {
        get { return (string)base["LastName"]; }
        set { base["LastName"] = value; Save(); }
    }

    public DateTime DateOfBirth
    {
        get { return (DateTime)base["DateOfBirth"]; }
        set { base["DateOfBirth"] = value; Save(); }
    }

    public ContactInfo Contact
    {
        get { return (ContactInfo)base["Contact"]; }
        set { base["Contact"] = value; Save(); }
    }
}

I have used aspnet_regsql.exe and it created multiple tables in the sql server and storing the data in those tables and is working fine. I would like to save the information into my table eg. tblUserInfo. How should I proceed? I checked multiple forums but no luck.

Any help is much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:48:36+00:00Added an answer on June 3, 2026 at 8:48 pm

    First of all aspnet_regsql.exe is outdated. You might want to consider using ASP.Net Universal Providers.

    I assume your question is save the information into my table eg. tblUserInfo

    Instead of using CreateUserWizard, you can collect the user information and save it by yourself.

    1. Creating a tblUserInfo table (alternative solution to ASP.Net Profile)

    2. Inserting UserInfo into tblUserInfo after creating a user

    <asp:TextBox ID="UsernameTextBox" runat="Server" /> 
    <asp:TextBox ID="EmailTextBox" runat="Server" /> 
    <asp:TextBox ID="PasswordTextBox" runat="Server" /> 
    <asp:TextBox ID="PasswordQuestionTextBox" runat="Server" /> 
    <asp:TextBox ID="PasswordAnswerTextBox" runat="Server" /> 
    <asp:TextBox ID="FirstNameTextBox" runat="Server" /> 
    <asp:TextBox ID="LastNameTextBox" runat="Server" /> 
    
    string username = UsernameTextBox;  
    string password = PasswordTextBox.text; 
    string email = EmailTextBox.text; 
    string passwordQuestion = PasswordQuestionTextBox.text; 
    string passwordAnswer = PasswordAnswerTextBox.text; 
    bool isApproved = true; 
    
    MembershipCreateStatus status; 
    
    MembershipUser membershipUser = System.Web.Security.Membership.CreateUser(
    username, password, email, passwordQuestion, passwordAnswer, isApproved, out status); 
    
    if (status != MembershipCreateStatus.Success) 
       throw new Exception(status.ToString()); 
    
    // Save the rest of the user info to tblUserInfo with userId
    Guid userId = (Guid)membershipUser.ProviderUserKey;
    

    3. How to make UserInfo available for login user?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a django project working on a development server(ubuntu) that we have been
I installed TeamCity and got it working against my project. However, I have since
In the project I'm working on I have got a list List<Item> with objects
I'm working on a Cocoa project using Core Animation and I've got a custom
On a current project which I'm currently working, i have a symfony task that
We are using TFS and VS 2010. I have been working on a project
Im working in a project and I got two types in Date. I want
I working on my first ASP.net MVC project and and i got some problems
I've got a Maven build for an OSGI project I'm working on. I'd like
I've got a Visual Studio 2010 C++ project. Previously everything was working fine but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.