5

I am using Knockoutmvc for my project. Following 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 have checked that it is working with Normal Html Helpers of MVC. But with knockoutmvc it is not working.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Aditya Raval
  • 590
  • 4
  • 20

0 Answers0