Link to home
Start Free TrialLog in
Avatar of nasemabdullaa
nasemabdullaa

asked on

can i validate a FormView ( InsertItemTemplete and EditItemTemplete Controls ) Via the jquery.val...

i tried to apply the same tutorial for jquery.validationEngine to validate a textbox ( for required ) which is in ( Insert and Edit Templete ) of a FormView, but it didnt work , if i use an inline form it work fine the code i use is :


<script type="text/javascript">
         $(document).ready(function () {
             $("#FormView1").validationEngine();
         });
 
</script>

Open in new window



<asp:FormView ID="FormView1" runat="server" DefaultMode="Insert" ClientIDMode="Static"  >
     <insertitemtemplate>
        &lt;asp:TextBox ID="TextBox1" runat="server" class="validate[required]"&gt;
    </insertitemtemplate>
        <edititemtemplate>
            &lt;asp:TextBox ID="TextBox1" runat="server" class="validate[required]"&gt;
        </edititemtemplate>

Open in new window

   

 
Thanks
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial