asp.net authentication and authorisation
<p>I am using Form authentication. Here I am using a login control and in (login.cs) control I am calling the following method to validate the user. Here I am using local name for both username and password and now I want to connect to the database so I can retrieve username and password.</p>

<pre><code>private bool Authenticateme(string username, string password, bool remberusername)
{
    String localusername = "username";
    String localpassword = "amar";
    if (username.Equals(localusername) &amp;&amp; password.Equals(localpassword))
    {
        return true;
    }
    else
    {
        return false;
    }
}
</code></pre>
