Asp.net reset fields and ConfirmCancel
<p>Am using master page in my asp.net application, and I want to reset the fields when I click the <code>Cancel</code> button.</p>

<p>I can achieve this by adding the onClientClick event as</p>

<pre><code>OnClientClick="this.form.reset();return false;"
</code></pre>

<p>its working but, I already used this function for showing the confirm cancel popup like,</p>

<pre><code>OnClientClick="return confirmCancel()"
</code></pre>

<p>this confirmCancel() is written in the js file called <code>Custom.js</code> and its under the folder called <code>Script</code>.</p>

<p>I need to show this <code>confirmCancel()</code> pop up and if I give ok it should clear the form, how can I achieve this, can anyone help me here...</p>

<p>this is the confirmCancel() method</p>

<pre><code>function confirmCancel() {
var c = confirm("Confirm Cancel?");
if (c) {
    return true;
}
else {
    return false;
}
}
</code></pre>
