Sample C# code with user logins/passwords?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Burt

    Sample C# code with user logins/passwords?

    Hi All,

    I need to develop an C# internet app with logins, eg you create a
    username and password, the password can be emailed to you if you forget
    it, you can change the password etc.

    Before I reinvent the wheel, does anyone know of sample code online
    that will do this? Perhaps something from MS? I looked around but
    couldn't find anything.

    Thanks,

    Burt

  • Landi

    #2
    Re: Sample C# code with user logins/passwords?

    > I need to develop an C# internet app with logins, eg you create a[color=blue]
    > username and password, the password can be emailed to you if you forget
    > it, you can change the password etc.[/color]

    look at system.web.mail namespace on MSDN
    logins into the website: this will vary widely depending on what you want to
    do. Questions you will have to ask yourself. Are you going to use a
    database to store username and password information or are you going to use
    flat files, xml files....You get the idea.
    You need to sit down and figure out how you want your stuff to work before
    you can start to code.

    --
    info@donotspam dowhileloop.com
    http://www.dowhileloop.com web development
    http://publicjoe.dowhileloop.com -- C# Tutorials


    Comment

    • William Stacey [MVP]

      #3
      Re: Sample C# code with user logins/passwords?

      > do. Questions you will have to ask yourself. Are you going to use a[color=blue]
      > database to store username and password information or are you going to
      > use
      > flat files, xml files....You get the idea.
      > You need to sit down and figure out how you want your stuff to work before
      > you can start to code.[/color]

      Most true. Also note you can use Local account DB (i.e. SAM) or AD for your
      user principal roles security without getting into another seperate DB.
      That way you can leverage all the existing user account tools.

      --
      William Stacey, MVP



      Comment

      • Burt

        #4
        Re: Sample C# code with user logins/passwords?

        Landi and William,

        Thanks for your replies. SQL Server will be the back end. There are no
        current users. I was just hoping to find something prebuilt that I
        could use as a starter, since this functionality is common to most of
        the websites I've been to.

        Thanks,

        Burt

        Comment

        • Landi

          #5
          Re: Sample C# code with user logins/passwords?

          Burt,
          read this



          --
          info@donotspam dowhileloop.com
          http://www.dowhileloop.com web development
          http://publicjoe.dowhileloop.com -- C# Tutorials
          "Burt" <burt_5920@yaho o.com> wrote in message
          news:1114488991 .589290.119600@ l41g2000cwc.goo glegroups.com.. .[color=blue]
          > Landi and William,
          >
          > Thanks for your replies. SQL Server will be the back end. There are no
          > current users. I was just hoping to find something prebuilt that I
          > could use as a starter, since this functionality is common to most of
          > the websites I've been to.
          >
          > Thanks,
          >
          > Burt
          >[/color]


          Comment

          Working...