title: HTTP Error 404.7 - Not Found Due to Response.Redirect Method in AspDOTnet CSharp
body: <pre><code>protected void btnLogin_Click(object sender, EventArgs e)
          {
              if (txtUsername.Text != string.Empty &amp;&amp; txtPassword.Text != string.Empty)
              {
                  DBWPAccountRecordsDataContext DBACCOUNT = new DBWPAccountRecordsDataContext();
                  var query = (from i in DBACCOUNT.WP_LoginUsers
                               where i.Login_Username == txtUsername.Text &amp;&amp; i.Login_Password == txtPassword.Text
                               select new { 
                                   ACCESS = i.Login_AccessPortID,
                                   LOGID = i.Login_UserID
                               });
                  if (query.Count() &gt; 0)
                  {
                      getLoginUserPROFILEID(query.FirstOrDefault().LOGID);
                      getUserLoginDepartment(query.FirstOrDefault().ACCESS, WPGlobalVariables.getPROFUSERID);
                      Session["ACCESS"] = query.FirstOrDefault().ACCESS;
                      Response.Redirect("~/Modules/MasterPage.Master");
                  }
                  else 
                  {
                      lblResult.Visible = true;
                      lblResult.Text = "Account Doesn't Exist!";
                  }
              }
              else 
              {
                  lblResult.Visible = true;
                  lblResult.Text = "Username / Password is Empty";                
              }
          }
  </code></pre>
  
  <p>Hello sir &amp; maam.. i'm a student of Computer Science Junior Level Focusing on the DotNet Framework this button happens to be on a MasterPage1.page which i created and set as a start-up or landing page of a site. and its a master login page which users try to add login filters out adminiters and users. not when someone login it suppost to redirect the page to another master page which is stored in inside a folder "Modules" which consist pages of site map based on Session ID of a login user. although when the login is successful it doesn't show up. but an error is shown stating "HTTP Error 404.7 - Not Found The request filtering module is configured to deny the file extension." is it possible to have two master pages in one Project?</p>