مشکل با RequiredFieldValidator در visual Studio 2013
با سلام
من وقتی در وب فرمم از RequiredFieldValidator در visual Studio 2013 استفاده میکنم eror زیر میده
Server Error in '/' Application.
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).]
System.Web.UI.ClientScriptManager.EnsureJqueryRegi stered() +2280722
System.Web.UI.WebControls.BaseValidator.RegisterUn obtrusiveScript() +10
System.Web.UI.WebControls.BaseValidator.OnPreRende r(EventArgs e) +9640517
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974 |
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
جالبه که قبلاً با رفتن به property page و فعال کردن accessibility validation و با زدن تیک دو آیتم ریز اون مشکل حل میشد اما در کمال تعجب دیگه جواب نمیده
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
Server Error in '/' Application.
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).]
System.Web.UI.ClientScriptManager.EnsureJqueryRegi stered() +2280722
System.Web.UI.WebControls.BaseValidator.RegisterUn obtrusiveScript() +10
System.Web.UI.WebControls.BaseValidator.OnPreRende r(EventArgs e) +9640517
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Control.PreRenderRecursiveInternal() +155
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974 |
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
دوستان خودم با سرچ در منابع زبان اصلی یافتم با اضافه کردن کد ریز در Web.config حل میشه
<configuration>
<appSettings>
.....
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
<system.web>
</system.web>
</configuration>
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
سلام دوست خوب من :
شما در 3 جا می تونی این اعلان را داشته باشی
1- Web Config
2-Codebehind
3-Global
دستورش هم :
this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
نقل قول:
نوشته شده توسط
aroshanzamir
سلام دوست خوب من :
شما در 3 جا می تونی این اعلان را داشته باشی
1- Web Config
2-Codebehind
3-Global
دستورش هم :
this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;
راه حل منم درسته دیگه؟؟؟؟؟؟؟؟؟؟؟؟/ یه جورایی همونه دیگه نه؟؟؟؟؟؟؟؟؟؟؟؟
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
نقل قول: مشکل با RequiredFieldValidator در visual Studio 2013
سلام
برو داخل فایل web.config و 4.5 را به 4.0 تغییر بده