I usually use C#, but find many beginners do not.
You can set it up with Page_Load if it is popping up when you initially open
the page. You can also place it in any control event, like when a user
clicks a button.
When you place items on a page, you have the ability to use the Register
script events. Look up RegisterClientScript, for example, to register a
client script. What control you add it to really depends on the nature of
the application.
Adding a control is "less correct" to a purist, but I feel if something
works well and is easy to understand, it is fine. In either case, create the
popup script in its own routine so you can reuse it. It is easy to teach
someone else how to do it, which is very beneficial in the application I am
currently working on.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside of the box!
*************************************************