Executing ASP.NET 1.1 Code within Javascript
<p>When the user clicks a certain LinkButton, I need to open a confirmation dialog with OK/Cancel. If the user hits OK, then I need to run a function from ASP.NET (something to update the database).</p>

<p>Something like the following...</p>

<p><strong>Javascript</strong></p>

<p><code>function openConfirm() {
    return window.confirm("Are you sure you want to do this?");
}</code></p>

<p><strong>ASP</strong></p>

<p><code>&lt;asp:LinkButton runat="server" CommandName="viewPart" onClick="if(openConfirm() === true) &lt;% SomeASPFunctionCall() %&gt;;"&gt;Delete&lt;/asp:LinkButton&gt;</code></p>

<p>The catch is that my application is running ASP.NET 1.1, so any references to adding an <code>OnClientClick</code> to the control is irrelevant (because <code>OnClientClick</code> has been added for ASP 2.0). I have tried postbacks via __doPostBack and the __eventObject and __eventArguments, but those simply do not work or I can't figure it out.</p>

<p>How should I manage this combination of client-side/server-side interaction?</p>

<p>Thank you</p>
