Horje
call action method on checkbox click asp.net mvc without pageload Code Example
call action method on checkbox click asp.net mvc without pageload
@section scripts {
    <script>
        $(function() {
            $('.toggle').change(function() {
                var self = $(this);
                var url = self.data('url');
                var id = self.attr('id');
                var value = self.prop('checked');

                $.ajax({
                    url: url,
                    data: { id: id },
                    type: 'POST',
                    success: function(response) {
                        alert(response);
                    }
                });
            });
        });
    </script>
}




Csharp

Related
C# Check	whether	the	String	is	a	palindrome	or	not. Code Example C# Check whether the String is a palindrome or not. Code Example
Dominosteine c# Code Example Dominosteine c# Code Example
how to remove black top bar in asp.net Code Example how to remove black top bar in asp.net Code Example
getawaiter and no extension method Code Example getawaiter and no extension method Code Example
_swapbatch.foreach multiple statements c# Code Example _swapbatch.foreach multiple statements c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11