asp.net - Got Error at RunTime because of Required Field Validator -


i developing asp.net application in visual studio 2013, while adding required field validator , getting error @ runtime .. , error below ... please me crack problem

source error:

an unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.

stack trace:

{ [invalidoperationexception: webforms unobtrusivevalidationmode requires scriptresourcemapping 'jquery'. please add scriptresourcemapping named jquery(case-sensitive).]    system.web.ui.clientscriptmanager.ensurejqueryregistered() +2179162    system.web.ui.webcontrols.basevalidator.registerunobtrusivescript() +10    system.web.ui.webcontrols.basevalidator.onprerender(eventargs e) +9708897    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} 

add below code in global.asax ---> application_start

scriptmanager.scriptresourcemapping.adddefinition("jquery", new scriptresourcedefinition { path = "~/scripts/jquery-1.4.1.min.js", debugpath = "~/scripts/jquery-1.4.1.js", cdnpath = "http://ajax.microsoft.com/ajax/jquery/jquery-1.4.1.min.js", cdndebugpath = "http://ajax.microsoft.com/ajax/jquery/jquery-1.4.1.js" });


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -