magic-strings

Use T4MVC to Remove Magic Strings in ASP.NET MVC Apps

ASP.NET MVC has a fascination with magic strings. Basically any time you need to specify an action, a view, or controller, you use a magic string: return RedirectToAction("Index", "Home", new { id = 4 }); return View("Details"); @Html.ActionLink("Back to details", "Detals", "User", new {id = 12}, new {@class = "backlink"}); @using(Html.BeginForm("Details", "User", FormMethod.Post)) This makes the code really... Read more >
/* * * DON'T EDIT BELOW THIS LINE * * */ (function () { var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = '//' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }());