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 8363625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:13:32+00:00 2026-06-09T12:13:32+00:00

I am inserting a user using membership provider protected void Button3_Click(object sender, EventArgs e)

  • 0

I am inserting a user using membership provider

protected void Button3_Click(object sender, EventArgs e)
    {
        MembershipCreateStatus status;
        MembershipUser user = Membership.CreateUser("chandu1", "P@ssw0rd", "rasdsd@sdsdh.com", "null", "null", true, out status);

        switch(status)
  {
             case MembershipCreateStatus.DuplicateUserName:
             Response.Write("User already exists in system.Please select different name and try again");
             break;
             case MembershipCreateStatus.DuplicateEmail :
             Response.Write("Duplicate Email");
             break;
             case MembershipCreateStatus.Success :
             Response.Write("User has been created successfully");
             break;
    }

But i am unable to find the user in the membership table or users table where can i find them?.How membership provider determines in which database it should insert the user,i am new to this can anyone help me?

  • 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-09T12:13:33+00:00Added an answer on June 9, 2026 at 12:13 pm

    if you use a ASP.net website, you’ll need to look at the Web.Config, if you use an other kind of project you need to take a look at the App.Config

    These files are the places where they store the connectionstring to lets say a DB

    Part of a web.config

    <connectionStrings>
        <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
    </connectionStrings>
    

    As you can see here there is the connectionstring which will tell the membershipprovider where to look for the Database or file.

    next to that there are some Nodes in you Web.Config that tell something about the authentication mode and membershipprovider.

    If you want to use the ASP.netDB for saving users/roles take a look at the Aspnet_regsql command that can be found in the %windir%\Microsoft.NET\Framework\VersionNumber

    Here another nice example of how to create an asp.net MVC2 website using Forms authentication

    Have fun 🙂

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

Sidebar

Related Questions

I have to insert roles for user by using check box but for inserting
I am currently using HDI Membership provider and the design looks as shown below:
I have a website that is already built using the default aspnet membership provider.
I am having a basic mysql stored procedure for inserting user data along with
I'm trying to prevent user from inserting * in a textbox. This is what
For inserting special characters in data like (,')etc., I am using mysql_real_escape_string() function &
I am currently working on my own version of membership using Entity Framework 4.0
A user post a comment on a forum using a textarea, he presses enter
I'm using the following regex to strip out non-printing control characters from user input
I am retrieving a value from our DB using JSTL. I am inserting it

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.