How can I call code behind fuction from Javascript
<p>I want to set permissions after Group is added, So my logic is once user add Group, I want to prompt them Confirm box asking (" Do you like to assign permissions to Group?") if yes, I want to call ModalPopupExtender with Permission otherwise nothing. How can I perform this?</p>

<pre><code>protected void ListView1_ItemInserted(object sender, ListViewInsertedEventArgs e)
{
    if (e.Exception == null) {
        ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "Confirm('Do you like to Give permission to this User?')", true);

    }
}
</code></pre>

<p>Is there anyway to do same task?</p>
