jeudi 19 mai 2016

How to Enable HtmlHelper.ClientValidationEnabled for Partial View Only

i need to know, is it possible to enable client side validation for specific Partial View only? I've tried placing the code as below in my partial view, but it still validate my parent view. any ideas?


--sample of my parent view----

@using (Html.BeginForm("Create", "FinishProductCompleteForm", FormMethod.Post, new { enctype = "multipart/form-data" }))







--partial view (_CreateNewRawMaterial)--

@model MyCOOEntity.CostAnalysisModel.FinishProductCompleteForm

    HtmlHelper.ClientValidationEnabled = true;


Aucun commentaire:

Enregistrer un commentaire