Looking for Redirection ASP.NET User authentication and alternative to Create new user wizard
<p>I have been having fun with ASP.NET until I arrived at the User Authentication in my journey. It's like I have hit a brick-wall. </p>

<p>I am not trying to re-invent the wheel, I can't even if I tried, so I decided to simply use the forms authentication and an SQL Server Database to store user password. I can use a GUID and HASH using SHA256 or SHA512, or even salting before data insertion.</p>

<p>However when I tried using this code I got an error that it was obsolete:
<em>This is just for demonstrating my use of forms authentication not a real project:</em></p>

<p><strong>Code:</strong></p>

<pre><code>if (FormsAuthentication.Authenticate(txtUserName.Text, txtPassword.Text) &amp; 
(txtUserName.Text.Trim().Length &gt; 1) &amp; (txtPassword.Text.Trim().Length &gt; 1))
{
ltrStatusMsg.Text = Database.InsertData(txtUserName.Text, txtPassword.Text);
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, chkMemory.Checked);
}
else
{
ltrStatusMsg.Text = "InValid Login";
}
</code></pre>

<p>My question is should I simply abandoned this idea of doing my own authentication; or is there no harm using the above method? Or use the Wizard?</p>

<p>If Having Visual Studio Create the DB and using the Wizard is the most effective way, then I have no choice. I am simply doing a very basic web app nothing with Data about the next Alien Flight. :)</p>

<p>Please advise:</p>

<p>Thank you!</p>
