title: ASP.NET modal popup, entirely from code behind?
body: <p>What I am trying to do is create a bit of reusable code that can write a modal popup, either through javascript or using the ajaxcontrol toolkit all from the code behind.</p>
  
  <p>The modal would be a sort of login pop up for controlling access to more restricted areas of the website allowing certain users to re-credential in for higher access.</p>
  
  <p>I was thinking of doing a user control but I forsee some problems with passing all of the appropriate information along without it being completely hoaky.</p>
  
  <p>If anyone has any good links or advice for doing so it would be greatly appreciated!</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: I know how to use the ajax control toolkit and its controls, and I know how to make login screens, I'm asking how to do this entirely from the code behind from a class that would be independent of its implementation</p>