Solved

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

Posted on 2011-09-28
1
383 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:nasemabdullaa
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36720211
Try this :

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

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now