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 :
Thanks
<script type="text/javascript">
$(document).ready(function () {
$("#FormView1").validationEngine();
});
</script>
<asp:FormView ID="FormView1" runat="server" DefaultMode="Insert" ClientIDMode="Static" >
<insertitemtemplate>
<asp:TextBox ID="TextBox1" runat="server" class="validate[required]">
</insertitemtemplate>
<edititemtemplate>
<asp:TextBox ID="TextBox1" runat="server" class="validate[required]">
</edititemtemplate>
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.