title: Error while showing a modal dialog box or form
body: <p>I am checking emailId exists in DB, If Exists
  I am looking to create a Ok/Cancel confirmation dialog.
  if user say "Ok" I am redirecting to some other form.</p>
  
  <p>My code is :</p>
  
  <pre><code>If emailId = True Then
      If MsgBox("Your email address exists in our database. Click OK to update your   Details.", MsgBoxStyle.Information + MsgBoxStyle.OkCancel, Title:="NJ Golf Resort") = MsgBoxResult.Ok Then
          Response.Redirect("~/articles.asp?a=" &amp; a &amp; "&amp;b=" &amp; b )
      End If
  End If
  </code></pre>
  
  <p>for above code i m getting error :</p>
  
  <blockquote>
    <p>Showing a modal dialog box or form
    when the application is not running in
    UserInteractive mode is not a valid
    operation. Specify the
    ServiceNotification or
    DefaultDesktopOnly style to display a
    notification from a service
    application</p>
  </blockquote>