title: String Parameter in url
body: <p>Hy Guys,
  I have to pass in a method action a string parameter, because I want to implement a tags' search in my site with asp.net MVC but everytime in action it is passed a null value.</p>
  
  <p>I post some code! </p>
  
  <p>I try to create a personal route.</p>
  
  <pre><code> routes.MapRoute(
              "TagsRoute",
              "Tags/PostList/{tag}",
              new {tag = "" }
          );
  </code></pre>
  
  <p>My RouteLink in a viewpage for each tag is:</p>
  
  <pre><code>&lt;% foreach (var itemtags in item.tblTagArt) {%&gt; 
  
      &lt;%= Html.RouteLink(itemtags.Tags.TagName,"TagsRoute", 
          new {tag=itemtags.Tags.TagName})%&gt;,    
  &lt;% } %&gt;
  </code></pre>
  
  <p>My method action is:</p>
  
  <pre><code> public ActionResult PostList(string tag)
      {
          if (tag == "")
          {
              return RedirectToAction("Index", "Home");
          }
          else
          {
              var articoli = artdb.GetArticoliByTag(tag);
  
              if (articoli == null)
              {
                return RedirectToAction("Index", "Home");
              }
  
              return View(articoli);
          }
      }
  </code></pre>
  
  <p>Problem is value tag that's always null, and so var articoli is always empty!</p>
  
  <p>Probably my problem is tag I have to make a route contrainst to my tag parameter.</p>
  
  <p>Anybody can help me?</p>
  
  <p>N.B I am using ASP.NET MVC 1.0 and not 2.0!</p>