Question: I have 3 `Buttons` in an aspx page. One for `Save as Draft`, 2nd for `Cancel` and 3rd for `submit`.
Now I want that whenever I click on any of the 3 `Buttons` then all the 3 `Buttons` should get disabled.

Answer: 
You can try like this:

```
private void ButtonDisable(Control ct)
{
    foreach(Control c in ct.Controls)
    {
        if (c is Button)
        {
           c.Enabled = false;;
        }
    }
}

```
You can do the same with jQuery

```
$(":submit").click( function () {
   $(":submit").each( function() {
        $(this).prop('disabled', true);
   });
});

```

It will disable your buttons before starting execution of any server side code