Sample C# code with user logins/passwords?

  • Thread starter Thread starter Burt
  • Start date Start date
B

Burt

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
 
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.

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.
 
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.

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.
 
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
 
Back
Top