locked
How to implement Asp.net membership in my developed web application RRS feed

  • Question

  • User1052662409 posted

    Hi all,

             I am working on a web application. I already completed it. But when I gone through security audit, I came to know that I should use asp.net membership for, login, password change, creating user, reset password etc.

    So I stared using asp.net membership. I created a login page and it's working fine. I also got a database in my App_Data folder.

    The problem is that I already have a database for my application where I have a user table which is having more fields than the table aspnet_Users. see the image below.

    So please suggest me how to implement asp.net membership in my web application, as I need more fields in user table,

    how to insert data along with my fields with the fields above mentioned in the above image, because I didn't fine any code through using asp.net membership. If I could got,  I would surely make changes accordingly.

    I mean how to merge this database and mine without any code.

    Thanks

    Thursday, August 28, 2014 7:49 AM

Answers

  • User-734925760 posted

    Hi,

    According to your description, if you need more fields than asp.net membership, you can't add fields to it. So far as I know, you can use Asp.net profiles to store custom properties about your users. Please see the code below:

    <profile>
      <properties>
        <add name="PostalCode" />
      </properties>
    </profile>
    

    You can get the field by the code below:

    Profile.PostalCode = txtPostalCode.Text;
    

    For more information, please refer to the links below:

    http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx

    http://odetocode.com/Articles/440.aspx

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 29, 2014 2:06 AM