Sunday, 26 February 2023

ASP.NET MVC Full Course | In Tamil

 

Overview:


In this article, we will learn ASP.NET MVC Full Course in Tamil. We can learn additionally C#, SQL, 

Bootstrap ..etc. 


Model Popup Html & CSS Code:


<input type="hidden" id="hfdoubtId" />


<div class="modal fade" id="myModal">

    <div class="modal-dialog">

        <div class="modal-content">

            <div class="modal-header">


                <h4 class="modal-title">Delete Product <i class="fa fa-trash-o btn btn-danger"></i></h4>

                <h3> <a href="#" class="label label-info close" data-dismiss="modal">&times;</a></h3>

            </div>

            <div class="modal-body">

                <h6>Are you sure you want to delete this ID:<b><input type="text" style="border:none;text-align:left;width:20px" id="txtid" />?</b></h6> 


            </div>

            <div class="modal-footer">


                <a href="#" class="btn btn-success" onclick="DeleteAppoint()">Confirm</a>

                <a href="#" class="btn btn-primary" data-dismiss="modal">Cancel</a>

            </div>


        </div>


    </div>


</div>










JavaScript:



<script type="text/javascript">


        var ConfirmDelete = function (Id) {


            $("#hfdoubtId").val(Id);

            $("#txtid").val(Id);

            $("#myModal").modal('show');


        }


        var DeleteAppoint = function () {



            var doubtId = $("#hfdoubtId").val();


            $.ajax({


                type: "POST",

                url: "/Student/DeleteProducts",

                data: { Id: doubtId },

                success: function (response) {


                    if (response == "Success") {

                        $("#showmsg").val("You have successfully deleted your products..!", "Deleted ");

                        alertSuccess();

                        setTimeout(function () {


                        }, 4000);


                       

                    }

                    $("#myModal").modal("hide");


                    $('#dataTables').DataTable().ajax.reload();


                }


            })


        }


    </script>

}



No comments:

Post a Comment

ASP.NET MVC Full Course | In Tamil

  Overview: In this article, we will learn ASP.NET MVC Full Course in Tamil. We can learn additionally C#, SQL,  Bootstrap ..etc.  Model Pop...