Skip to content
Loading
How to pull table record from the database in asp.net mvc 5?  
  •   
  •  class="modal-footer">  
  •                                 "button" class="btn btn-secondary" data-dismiss="modal">Close  
  •                                 "button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter" id="btnNext">  
  •                                     Next  
  •                                   
  •                               
  •   
  •   
  •   @foreach(var data in Model.regPeopleLists)  
  •                                         {  
  •                                               
  •                                         }  
  •                                         class="modal-body">  
  •                                             class="table table-bordered">  
  •                                                   
  •                                                       
  •                                                         Name  
  •                                                         EmailAddress  
  •                                                         LoginID  
  •                                                         SISID  
  •   
  •                                                       
  •                                                   
  •                                               
  •                                           
  •   
  •   
  • "text/javascript">  
  •   
  •     $(document).ready(function () {  
  •         $(document).ready(function () {  
  •             // Fire when radio button clicked  
  •             $("#LoginID, #SIS_ID").bind("change", function () {  
  •                 checkdata();  
  •             });  
  •   
  •             // Fire when we enter anything in the textbox  
  •             $("#eNtsaTextAreaDisc").bind("input", function () {  
  •                 checkdata();  
  •             });  
  •         });  
  •   
  •         //here we check both radio button clicked and textbox filled with some information  
  •         function checkdata() {  
  •             if (($("#LoginID").prop("checked") || $("#SIS_ID").prop("checked")) && $("#eNtsaTextAreaDisc").val().length > 0) {  
  •                 $("#btnNext").removeAttr("disabled");  
  •             }  
  •             else {  
  •                 $("#btnNext").attr("disabled""disabled");  
  •             }  
  •         }  
  •   
  •  

    1 Reply

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