title: Options for displaying existing ASP.NET WebForm in a lightbox
body: <p>I have been given a requirement to take an existing stand-alone web-form (i.e. uses postbacks) and throw it into a lightbox.  </p>
  
  <p>The standalone web-form already has save and cancel buttons that have predefined behaviors. For example, the <strong>Save</strong> button attempts to save the form, and either displays validation errors, or if the operation was successful, redirects to some other page in the app.  </p>
  
  <p>However, in the context of this new "lightbox mode", the Save button should additionally close the lightbox if the operation was successful.  </p>
  
  <p>I see two options: </p>
  
  <ol>
  <li><p>Option 1-->UpdatePanel + ModalDialogExtender:</p>
  
  <p>a. Extract a UserControl out of the standalone web-form that includes everything but save/cancel buttons</p>
  
  <p>b. Introduce Save and Cancel EventHandlers on said UserControl</p>
  
  <p>c. Use this UserControl on both the standalone and lightbox versions of the page, and wire up the events appropriately</p></li>
  <li><p>Option 2-->Client side lightbox (i.e. jQuery)</p>
  
  <p>a.  ....</p></li>
  </ol>
  
  <p>I'm a big fan of jQuery and tend to favor its use for Ajax functionality b/c of the level of control it gives me.   On the other had, I also want the simplest solution that will possibly work.  Assuming that option 2 is that option, any guidance on how to proceed would be appreciated. </p>