Skip to content
Loading
search functionaliity in mvc , its fetching but not binding  
  •   
  • }  
  •   
  • @using (Html.BeginForm("UpdateEmployee""Employee", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal", role = "form" }))  
  • {  
  • class="modal fade" id="EditModals" role="dialog">  
  • class="modal-dialog" style="padding-right: 16px; margin-right: 200px; margin-right: 74px; left: 148px; margin-left: 127px; padding-left: 11px; ">  
  • class="modal-content">  
  • class="modal-header">  
  • class="close" aria-hidden="true" type="button" data-dismiss="modal">X  
  • class="modal-title">Edit Employee Details  
  •   
  • class="modal-body">  
  • "text-align:center">  
  • "errmsg" style="color:red;">  
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • EmpLoyee ID:@Html.TextBox("txtEmpId"""new { @id = "txtEmpId", @readonly = "readonly", @class = "form-control", style = "align-content:center" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • Employee Name: @Html.TextBox("txtEmpName"""new { @id = "txtEmpName", @class = "form-control", style = "align-content:center" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • Designation: @Html.TextBox("txtDesignation"""new { @id = "txtDesignation", @class = "form-control", style = "align-content:center" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  •   
  • "user_img"  
  • height="100"  
  • width="90"  
  • style="border:solid" align="center" />  
  •   
  • Employee Image: @Html.TextBox("txtEmpimage"" "new { type = "file", @id = "txtEmpimage", @class = "form-control", @onchange = "show(this)" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • Salary: @Html.TextBox("txtSalary"" "new { @id = "txtSalary", @class = "form-control" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • Email: @Html.TextBox("txtEmail"" "new { @id = "txtEmail", @class = "form-control" })  
  •   
  •   
  • class="form-group">  
  • class="col-sm-12">  
  • Department: @Html.TextBox("txtDepartment"" "new { @id = "txtDepartment", @class = "form-control" })  
  •   
  •   
  •   
  • class="modal-footer">  
  • class="form-group">  
  • "submit" id="btnUpdate" class="btn btn-success" data-toggle="modal" data-target="#myModal">UPDATE  
  • "button" id="btnCancel" class="btn btn-danger" data-dismiss="modal">Cancel  
  •   
  •   
  •   
  •   
  •   
  • }  
  • class="modal fade" id="myModal" role="dialog">  
  • class="modal-dialog">  
  •   
  • class="modal-content">  
  • class="modal-header">  
  • "button" class="close" data-dismiss="modal">×  
  •   
  • class="modal-body">  
  • Updation Successfull..

      
  •   
  • class="modal-footer">  
  • "button" class="btn btn-default" data-dismiss="modal">Close  
  • "submit" id="btnOk" class="btn btn-success">ok  
  •   
  •   
  •   
  •   
  • @section scripts{  
  • "https://www.appelsiini.net/download/jquery.jeditable.js">  
  •   
  • }  
  •   
  •   
  •   
  • someone kindly help me it is fetching me the data but its not changing the view .

    6 Replies

    Know the answer? Post it — somebody with the same question will find it here.