Validate user login using CMembership.ValidateUser
<p>I was reading about <code>Membership.ValidateUser</code>. </p>

<p>this is how you implement it;</p>

<pre><code>if (Membership.ValidateUser(UsernameTextbox.Text, PasswordTextbox.Text))
      FormsAuthentication.RedirectFromLoginPage(UsernameTextbox.Text, NotPublicCheckBox.Checked);
</code></pre>

<p>I want to validate a user if his/her username is <code>paul</code> and the password is <code>123</code>. By using <code>Membership.ValidateUser</code> i don't think i can do that validation. Please explain what <code>Membership.ValidateUser</code> does and how can i validate a user if he provides the correct credentials ?</p>
