title: Set Page to redirect after login in aspx
body: <p>I use a System.Web.Security.MembershipProvider to do my login-stuff on my aspx-Page.</p>
  
  <p>My default page is stored in Pages/Default.aspx.</p>
  
  <p>I defined this page as default page in iis. When I call my page via <em>server</em>/Pages/Default.aspx and do the login, everything works fine.</p>
  
  <p>But when I call only <em>server</em> and do the login here, I'm redirected to <em>server</em>/Default.aspx (without the Pages-directory) -> which leads to an error, page not found...</p>
  
  <p>Is there a way to prevent this, without changing the folderstructure of my project?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My Login-Control on the master-page:</p>
  
  <pre><code>&lt;asp:Login ID="LoginBox" runat="server" Width="339px" DestinationPageUrl="/Pages/Default.aspx" FailureText="Username or password wrong!"&gt;
  </code></pre>