A well-known sp.net---WebForms unobtrusivevalidationmode must be "jquery" scriptresourcemapping.

Source: Internet
Author: User
<span id="Label3"></p><p><p>I believe that there have been net people learning experience RequiredFieldValidator Control (verify Non-null Control) must not be unfamiliar, prohibit the control of the input definition of the role of the content (the value of this property Initialvalue. The default value of the property is an empty string, which we use frequently to verify that the user input is Empty.</p></p><p><p>)。</p></p><p><p>In addition, the space on both ends of the input will be removed on its own initiative before Validation.</p></p><p><p></p></p><p><p><br></p></p><p><p><span style="font-size:10px">today, When you practice the use of the control, you encounter issues such as the Following:</span></p></p><p><p></p></p><p><p>watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvu2vuaw9yx2xlzq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast "><br></p></p><p><p><br></p></p><p><p></p></p><p><p><span style="font-size:12px"> <strong>cause of error</strong></span></p></p><p><p>VisualStudio 2012 (or) WebForm 4.5 development, very many controls by default enable the unobtrusive Validationmode (so-called unobtrusive Validation, is a property of implicit authentication (related to the reference to jquery), but it is not assigned a value, programmer must be set manually. For example, the various validator used for data validation (the RequiredFieldValidator control used today), and the authorization and authenication settings, Because jquery is called on the front-end to authenticate, the unobtrusive validationmode is the default Enable. Assuming that the property is configured incorrectly, An error will be Generated.</p></p><p><p></p></p><p><p><br></p></p><p><p><span style="font-size:12px"> <strong>Workaround</strong></span></p></p><p><p></p></p><p><p><span style="font-size:10px">From the cause of the error we can very easy to the remedy, from the wrong reasons we get the solution to this problem is nothing more than three:</span></p></p><p><p><span style="font-size:10px">1, in the case of consent of the procedure, Reduce. The version number of the Framework. Detailed methods such as the Following:</span></p></p><p><p><span style="font-size:10px"></span></p></p><pre code_snippet_id="408951" snippet_file_name="blog_20140627_1_8384762" name="code" class="html"><pre code_snippet_id="408951" snippet_file_name="blog_20140627_1_8384762" name="code" class="html"><--><system.web> <compilation debug= "true" targetframework= "4.5" before!--changes/>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.