Note that there are some explanatory texts on larger screens.

plurals
  1. POMVC2 Client side validation within Jquery modal dialog
    text
    copied!<p>Using MVC2 I currently have a view creating a jquery dialog box containing an Edit partial view. On submit I am looking for it to perform client side validation on the Email class which has a required data annotation attribute for email address. Server side validation works fine but I want the user to have to fix the error in the modal dialog.</p> <p>Below is the code</p> <pre><code>&lt;% Html.EnableClientValidation(); %&gt; &lt;% using (Html.BeginForm()) &lt;div&gt; &lt;label for="EmailAddress"&gt; Email Address : &lt;/label&gt; &lt;%= Html.TextBoxFor(model =&gt; model.Email.EmailAddress)%&gt; &lt;%= Html.ValidationMessageFor(model =&gt; model.Email.EmailAddress)%&gt; &lt;/div&gt; </code></pre> <p>Scripts I am loading up are </p> <pre><code>&lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/jquery-1.3.2.min.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/jqueryUI/js/jquery-ui-1.7.2.custom.min.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/Splitter/splitter-1.5.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/Scripts/Start.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/Scripts/extended/ExtendedControls.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/jquery.validate.js")%&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;%= ResolveUrl("~/Scripts/MicrosoftMvcJQueryValidation.js")%&gt;"&gt;&lt;/script&gt; </code></pre> <p>Looking at the html generated I am not getting any of the JSON data generated for the client side validation to work. </p> <p>Any solutions gladly appreciated. S</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload