ASP.net and Javascript confirmation
<p>I have this situation:
I have an asp page that have a form and an action button. When user click button, it must show a confirmation box (confirm) to ask user. If user say OK it must do action A, and if user say Cancel it must do action B. The problem is that A,B action is on server-side and user are on client side. Because it require 2 action so I <em>cannot</em> add <code>return confirm()</code> into <code>onclick</code> attribute. So I what I've done is create a hidden field in the form and write javascript function that ask user and return value in hidden field and submit form then take action on server based on hidden field.</p>

<p>My question is: Is there any better design for this case?</p>
