title: Client side modal dialog in asp.net from the server side code. (how do I do this)
body: <p>I need a technique for dealing with what seems pretty simple!</p>
  
  <p>I have a form, with some logic on the server side for validation.
  if the server side code indicates that there is an issue, I want to display a modal popup to the client.</p>
  
  <p>I am having trouble getting it to work in this way.</p>
  
  <p>I found if I keep all the logic client side, I can use the javascript function</p>
  
  <pre><code>window.showModalDialog("url","title", "style");
  </code></pre>
  
  <p>However the logic is currently on the server side.
  this is an ASP.NET 3.5 web project - is there some way to do this using AJAX controls like the scriptmanager, an update panel etc?</p>
  
  <p>Thank you!</p>