title: How to find which path the post is routing to MVC Asp.Net
body: <p>How to find which path the post is routing to MVC Asp.Net</p>
  
  <p>I have a route for posting file's it earlier just had a id parameter so the </p>
  
  <blockquote>
    <p>global.ascx.cs</p>
  </blockquote>
  
  <p>use to look like </p>
  
  <pre><code>routes.MapRoute(
                  null, // Route name
                  "FileUpload/{action}/{id}/{gid}", // URL with parameters
                  new { controller = "FileUpload", action = "{action}", id =     UrlParameter.Optional } // Parameter defaults
              );
  </code></pre>
  
  <p>so on posting a file it used to catch it on the controller action</p>
  
  <pre><code>  public ActionResult CandidatesFileUpload(HttpPostedFileBase uploadFile)
    {
    }
  </code></pre>
  
  <p>Now I had added another optional parameter on the page with </p>
  
  <pre><code>routes.MapRoute(
              null, // Route name
              "FileUpload/{action}/{id}/{gid}", // URL with parameters
              new { controller = "FileUpload", action = "{action}", id = UrlParameter.Optional , gid=UrlParameter.Optional } // Parameter defaults
          );
  </code></pre>
  
  <p>now I am not able to catch my post on the above action function or on</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult CandidatesFileUpload(int id ,HttpPostedFileBase uploadFile)
      {
  
      }
  </code></pre>
  
  <p>Where is my post going I am confused , how do I find where is my post going ?</p>