.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

AjaxViewResult per Sanderson

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :ASP.Net

Does anyone know how to transform Sanderson's AjaxViewResult.cs MS MVC Validation refresh to jQuery? See below...

        private static void EndCapturingValidation(ViewContext viewContext)


            if (!viewContext.ClientValidationEnabled)



            // Previously used with MS MVC validation

            // viewContext.Writer.WriteLine("<script type=\"text/javascript\">Sys.Mvc.FormContext._Application_Load()</script>");

            // Updated for JQuery validation

            viewContext.Writer.WriteLine("<script type=\"text/javascript\">***WHAT GOES HERE???***</script>");


        private static void EndCapturingValidation(ViewContext viewContext)<

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend