Thulasiram pakala

Thulasiram pakala

  • 843
  • 838
  • 105k

MVC java script api call large data action event not call

Jun 1 2023 5:11 AM

hi

 

when i sent less data action event fired when i sent large html input data action event not fired any solution for this

i am using this code

 <script type="text/javascript">
        $(function () {
            $("#btnSubmit").click(function () {
                var divContents = $("#Grid").html();
               
               // var windowObject = window.open();

                //windowObject.document.write(divContents);
                var data = "data";
                alert(divContents);
                $.ajax({
                    
                    type: 'POST',
                    url: "/PreviewForm4/ExportExcel",
                    data: '{exportdata: "' + data + '"}',
                    contentType: "application/json; charset=utf-8",
                    dataType: "html",
                   
                     success: function (response) {
                         
                    },
                    failure: function (response) {
                        alert(response.responseText);
                    },
                    error: function (response) {
                        alert(response.responseText);
                    }
                });
            });
        });

    </script>

when i sent less data action event fired when i sent large html input data action event not fired any solution for this


Answers (1)