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


Top 5 Contributors of the Month
Imran Ghani
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)

                return;

            viewContext.OutputClientValidation();

            // 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

Categories: 
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