RedirectFromLoginPage - The resource cannot be found error
<p>I am setting a login up in c#</p>

<pre><code>if (TextBox1.Text == System.Convert.ToString(row["Username"]) &amp;&amp;
        (TextBox2.Text == System.Convert.ToString(row["Password"])))
            System.Web.Security.FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, false);

    else
        Label1.Text = "Invalid Username/Password"; //If incorrect show this label
</code></pre>

<p>Once the user enters the correct details I get a page saying <code>The resource cannot be found</code> My question is where to I set the page which it  should be redirected to?</p>

<p>So far my web.config looks like this</p>

<pre><code>&lt;authentication mode="Forms"&gt;
 &lt;forms&gt;

 &lt;/forms&gt;
</code></pre>

<p></p>

<p>I am connecting to a database to get the correct details, this section all works its just the redirecting of the page.</p>
