---
title: "Send request to server on checkbox click"  
description: "Send request to server on checkbox click"  
author: "Anonymous User"  
published: 2017-12-07  
updated: 2017-12-07  
canonical: https://www.mindstick.com/forum/34383/send-request-to-server-on-checkbox-click  
category: "c#"  
tags: ["c#", "mvc", "mvc4", "razor"]  
reading_time: 1 minute  

---

# Send request to server on checkbox click

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),

I want to send [request to server](https://www.mindstick.com/forum/34379/send-request-to-server-with-parameter-in-mvc-razor-view) on chechbox click. Here is my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii):

```
grid.Column("IsActive", header: "Is Active", style: "center_align", format: @<text><input type="checkbox" id="@item.ID" class="cheIsActive" checked="@item.IsActive" /></text>, canSort: true)
```

Please give me some idea..

## Replies

### Reply by Hemant Patel

Hi JULES BOUTIN,

Kindly use javascript code for achived your task. Call method on chechbox click.

Please follow below line of codes:

```
<script>
$(function () {
$('.cheIsActive').click(function () {
        $.post("Your path", {parameter}, function (response) {

        })
    });
}
</script>
```

Hope this was helpful for you...


---

Original Source: https://www.mindstick.com/forum/34383/send-request-to-server-on-checkbox-click

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
