title: MVC parameter returning null value
body: <p>Below is the <strong>Controller</strong> code:</p>
  
  <pre><code>public class HomeController : Controller
  {
      //
      // GET: /Home/
  
      public string Index(string name)
      {
          return "Welcome to MVC_Demo"+name;
      }
  
  }
  </code></pre>
  
  <p>and below is the <strong>Global.asax.cs</strong> codes:</p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              "Default", // Route name
              "{controller}/{action}/{id}", // URL with parameters
              new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
          );
  
      }
  
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          RegisterRoutes(RouteTable.Routes);
      }
  }
  </code></pre>
  
  <p>When I run the application and  browse for (<a href="http://localhost/MVC_Demo/home/index/pradeep" rel="nofollow noreferrer">http://localhost/MVC_Demo/home/index/pradeep</a>) it shows only,
  "Welcome to MVC_Demo" as the output, and not as "Welcome to MVC_Demo Pradeep"  i.e the parameter name "Pradeep" is not getting displayed.</p>
  
  <p>Considering me just a beginner any help would be highly appreciated.</p>
  
  <hr>