Create a javascript msgbox (YES/NO) and get results in code-behind
<p>Is it possible to create a (yes/no) javascript messagebox from code-behind, and also retrieve the return values?</p>

<p>I would like to set the content of a session object based on the client Yes/No.</p>

<p>The idea is to use this approach for redirecting iphone clients from my default web page.</p>

<blockquote>
  <p>"Do you want to go the iphone version of this site?" </p>
  
  <p>--YES Redirect to "iphone" default page, and set a session object to avoid asking this question again if default page is requested again
  within the lifespan of the session object.</p>
  
  <p>--NO Set a session object to avoid asking this question again if default page is requested again within the lifespan of the session
  object.</p>
</blockquote>
