我正在開發一個ASP.net c#項目。 我想要RequiredFieldValidator來檢查我的文本框。我加入了驗證,它工作在Visual Studio 2010中完全沒有問題,但一旦我做同樣的事情,完全一樣的東西,它不會在Visual Studio 2012年的工作,我recieving此錯誤:ASP.net RequiredFieldValidator VisualStudio 2012
[InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).]
System.Web.UI.ClientScriptManager.EnsureJqueryRegistered() +2171326
System.Web.UI.WebControls.BaseValidator.RegisterUnobtrusiveScript() +10
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +9576177
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
我問候...
這就像說「永遠不吃蛋糕,它會mak你胖「 – CResults