Solved

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

Posted on 2011-09-28
1
392 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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