title: ASP.NET Forms Based Authentication
body: <p>I am looking for some guidelines regarding FORMS BASED AUTHENTICATION implemenation in my ASP.NET project</p>
  
  <p>I have Welcome.ASPX page where Login Fields are displaying as follow</p>
  
  <p>Welcome.aspx.vb</p>
  
  <p>User Enter "LoginID" --> _LoginID.Text = "Test01"</p>
  
  <p>User Enter "Password" --> _Password.Text = "Hello"</p>
  
  <p>PersistForms.Checked</p>
  
  <p>Click on Login button --> _btnLogin.Click</p>
  
  <pre><code>Protected Sub _Login_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles _Login.Click 
  
  IF LoginID and Password MATCHES = TEUE THEN    // Comparison is done from database
  
  
  FormsAuthentication.RedirectFromLoginPage(_LoginID.Text, PersistForms.Checked) 
  
   // Using above line it redirects to defailt webpage of my application BUT I WANT TO REDIRECT TO other then default page. How can i do this? ?? How to rediect to EmployeeInfo.ASPX page from here????
  
  
  End Sub
  </code></pre>
  
  <p>Web Config is updated as follow</p>
  
  <pre><code>&lt;authentication mode = "Forms"&gt;
  
  &lt;forms
  
  loginUrl = "Login.aspx"
  
  name = ".ASPXFORMSAUTH" /&gt;
  
  &lt;/authentication&gt;
  
  &lt;authorization&gt;
  
  &lt;deny users = "?" /&gt;
  
  &lt;/authorization&gt;
  </code></pre>
  
  <p>Thanks</p>