Getting user input with CONFIRM
<p>i need to get the user to click OK or CANCEL:</p>

<pre><code>protected void Button1_Click(object sender, EventArgs e)
    {
        CallRecursive(TreeView1);

        string confirmationMessage;
        confirmationMessage = @"Please review the data before submitting:" +  "\r\n"
        + "Sample Received Date: " + received_dateTextbox.Text + "\r\n"
        + "Site of Ocurrence: " + site_of_occurrenceTextBox.Text + "\r\n"
        + "Occurrence Date: " + occurrence_dateTextBox.Text + "\r\n"
        + "Report Date: " + report_byTextBox.Text + "\r\n"
        + "Specimen ID: " + spec_idTextBox.Text + "\r\n"
        + "Batch ID: " + batch_idTextBox.Text + "\r\n"
        + "Report Initiated By: " + report_byTextBox.Text + "\r\n"
        + "Problem Identified By: " + RadioButtonList1.SelectedValue + "\r\n"
        + nodetexts;

        HiddenFieldConfirmation.Value = confirmationMessage;

************i need function ConfirmWithUser() to run here from javascript*************


            if (HiddenFieldUserConfirmed.Value != "no")
        {
            SubmitData();

            CallRecursive(TreeView1);
            nodetexts += ";";
        }
    }
</code></pre>

<p>here is the javascript:</p>

<pre><code>function ConfirmWithUser() {
            if (confirm(document.getElementById('HiddenFieldConfirmation').value) == true)

                            { document.getElementById('HiddenFieldUserConfirmed').value='yes'; }

                                else

                            { document.getElementById('HiddenFieldUserConfirmed').value='no';}
</code></pre>

<p>how do i run this function <code>ConfirmWithUser()</code> on the button click inside of the code behind code as shown above:</p>

<p>another words i need:</p>

<ol>
<li>after user clicks button, first part of codebehind execeutes</li>
<li>javascript inside of codebehind exeuctes</li>
<li>the last part of code behind executes</li>
</ol>
