title: ASP.NET MVC 3: Required steps for unobtrusive client-side validation of dynamic/AJAX content
body: <p>What are the complete set of <strong>Steps Required</strong> for client-side unobtrusive validation to work for dynamically inserted form fields?</p>
  
  <h2>Relevant SO posts</h2>
  
  <p><a href="https://stackoverflow.com/questions/6124992/asp-net-mvc-3-unobtrusive-client-side-validation-with-dynamic-content">ASP.NET MVC 3 unobtrusive client-side validation with dynamic content</a> - He needed the unobtrusive validation attributes to show up in the generated HTML and did so by calling <code>BeginForm</code></p>
  
  <p><a href="https://stackoverflow.com/questions/5938684/asp-net-mvc-3-validation-on-ajaxform">ASP.Net MVC 3 validation on AjaxForm</a> - The asker was using <code>Ajax.BeginForm</code> which uses MicrosoftAjax instead of JQuery.validation.</p>
  
  <p><a href="https://stackoverflow.com/questions/4187742/partialview-and-unobtrusive-client-validation-not-working">PartialView and unobtrusive client validation not working</a> - He had the problem with unobtrusive validation attributes not showing up and overrode <code>ViewContext.FormContext</code> as a workaround.</p>
  
  <p><a href="https://stackoverflow.com/questions/4997269/asp-net-mvc-3-generate-unobtrusive-validation-when-beginform-is-on-the-layout">ASP.NET MVC 3: Generate unobtrusive validation when BeginForm is on the layout</a> - Workaround for unobtrusive validation attributes not showing up in HTML</p>
  
  <h2>Relevant Links</h2>
  
  <p>Brad Wilson's <a href="http://bradwilson.typepad.com/blog/2010/10/mvc3-unobtrusive-validation.html" rel="nofollow noreferrer">Unobtrusive Client Validation in ASP.NET MVC 3</a></p>
  
  <p><a href="http://www.devtrends.co.uk/blog/the-complete-guide-to-validation-in-asp.net-mvc-3-part-1" rel="nofollow noreferrer">The Complete Guide To Validation In ASP.NET MVC 3 - Part  1</a></p>
  
  <p><a href="http://www.devtrends.co.uk/blog/the-complete-guide-to-validation-in-asp.net-mvc-3-part-2" rel="nofollow noreferrer">The Complete Guide To Validation In ASP.NET MVC 3 - Part 2</a></p>
  
  <p><a href="http://weblogs.asp.net/imranbaloch/archive/2011/03/05/unobtrusive-client-side-validation-with-dynamic-contents-in-asp-net-mvc.aspx" rel="nofollow noreferrer">Unobtrusive Client-side Validation with Dynamic Contents in ASP.NET MVC 3</a></p>