Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-28
1
Medium Priority
?
414 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 82

Accepted Solution

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

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

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

609 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