js script with yes/no in asp.net site
<p>I have a button on my asp.net site which activates javascript through <code>OnClientClick</code> property which is set to <code>potwierdzenie()</code>.
The script:</p>

<pre><code>&lt;script type="text/javascript"&gt; 
    function potwierdzenie() 
    {
        var answer = confirm("Do you want to delete it")
        if (answer)
            ???
        else
            ???
    }
&lt;/script&gt;
</code></pre>

<p>All I want to do is do some work (deleting something from mysql db) in c# depending on what user clicked (yes or cancel). How can I do this? How can I execute c# code in this script or how can I do it the other easiest way?</p>
