Unobtrusive check does not work in K-Mvc

I am using Knockoutmvc for my project. Below is the code.

@using PerpetuumSoft.Knockout @model OpManWeb.ViewModel.Customer.AddressVM @{ var ko = Html.CreateKnockoutContext(); } @{ ViewBag.Title = "Add/Edit Address"; } @Scripts.Render("~/jqueryval") @using (ko.Html.Form("SaveContact", "Customer")) { @Html.ValidationSummary(true) @ko.Html.TextBox(m => m.BlockNo, new { @class = "form-control fieldtextinput input-sm" }) @Html.ValidationMessageFor(model => model.BlockNo) <button type="submit" class="btn btn-sm btn-primary" style="margin-top:15px" /> } @ko.apply(Model) 

I checked that it works with regular HTML MVC helpers. But with knockoutmvc this does not work.

+5
source share

Source: https://habr.com/ru/post/1214661/


All Articles