Skip to content
Loading
How to show lists of added card in bootstrap?  
  •   
  •                                   
  •                               
  •                             @using (Html.BeginForm("CoursesRegistration""Home", FormMethod.Post))  
  •                             {  
  •                                 class="form-group row">  
  •                                     class="col-xs-3 ml-auto">  
  •                                         "button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">  
  •                                             Start New Course  
  •                                           
  •                                       
  •                                   
  •                             }  
  •                               
  •                               
  •                             @using (Html.BeginForm("ViewCourses""Home", FormMethod.Post))  
  •                             {  
  •                                 class="form-group row">  
  •                                     class="col-xs-3 ml-auto">  
  •                                         class="btn btn-large btn-success" id="viewCourse" href="@Url.Action("ViewCourses", "Home")">View Grades  
  •                                         "text/javascript">  
  •                                             $('#ViewCourses').on('click', function (e) {  
  •   
  •   
  •   
  •                                             });  
  •                                           
  •   
  •                                       
  •                                   
  •                             }  
  •   
  •                               
  •   
  •                             @using (Html.BeginForm("CoursesRegistration""Home", FormMethod.Post))  
  •                             {  
  •                                 class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">  
  •                                     class="modal-dialog" role="document">  
  •                                         class="modal-content">  
  •                                             class="modal-header">  
  •                                                 class="modal-title" id="exampleModalLabel">Start New Course  
  •                                                 "button" class="close" data-dismiss="modal" aria-label="Close">  
  •                                                     "true"  
  •                                                   
  •                                               
  •                                             class="form-group row">  
  •                                                 for="CourseName" class="col-sm-3 col-form-label">CourseName  
  •                                                 class="col-sm-5">  
  •   
  •                                                     @Html.EditorFor(model => model.Dashboard.CourseName, new { htmlAttributes = new { @class = "form-control", autofocus = "autofocus", placeholder = "CourseName" } })  
  •                                                   
  •                                               
  •                                             @using (Html.BeginForm("CourseList""Home", FormMethod.Post))  
  •                                             {  
  •                                                 class="form-group row">  
  •                                                     for="Content-Licence" class="col-sm-3 col-form-label">Content Licence  
  •                                                     class="col-sm-5">  
  •                                                         @Html.DropDownListFor(model => model.eCourses.CourseList, CourseListData as List)  
  •                                                       
  •                                                   
  •   
  •                                             }  
  •   
  •                                             @using (Html.BeginForm("CoursesRegistration""Home", FormMethod.Post))  
  •                                             {  
  •                                                 class="modal-footer">  
  •                                                     "button" class="btn btn-secondary" data-dismiss="modal">Cancel  
  •                                                     "@Url.Action("CoursesRegistration", "Home")" class="btn btn-large btn-success">Create Courses  
  •                                                     "text/javascript">  
  •                                                         $(".btn-success").click(function () {  
  •                                                             saveData();  
  •                                                         });  
  •   
  •                                                         function saveData() {  
  •                                                             var clientNo = $("#ClientId").val();  
  •                                                             var courseName = $("#CourseName").val();  
  •                                                             debugger  
  •                                                             $.ajax({  
  •                                                                 url: "/Home/CoursesRegistration",  
  •                                                                 type: 'POST',  
  •                                                                 data: JSON.stringify({ 'clientNo': clientNo, 'courseName': courseName }),  
  •                                                                 dataType: "json",  
  •                                                                 traditional: true,  
  •                                                                 contentType: "application/json; charset=utf-8",  
  •                                                                 success: function (result) {  
  •   
  •                                                                 }  
  •                                                             });  
  •                                                             //return false;  
  •                                                         }  
  •   
  •   
  •                                                       
  •   
  •                                                   
  •                                             }  
  •                                           
  •                                       
  •                                   
  •                             }  
  •                           
  •   
  •                   
  •               
  •           
  •       
  •   
  •  

    1 Reply

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