If you're talking about validation sort of pop-ups, your best bet would to use the asp.net validation controls. There is one of hte validation controls (can't remember which one off the top of my head) that has an option to show popup. This will actually trigger a pop up on the client with whatever error message you want.
The only other way to get a pop up to happen (that I know of) is to use the javascript window.open() command on your page.
k, correction: window.open() is the only way to make a new browser window open, not a pop up...my bad (assuming by pop up you mean those cutsey windows that either say something, or have an ok/cancel button, or allow the user to enter stuff).
Of course, to do all that, you'd still be working with javascript. As far as I've found, since asp.net is a server side and not client side (even javascript.NET is server side apparantly), there is no way to create a pop up except with those validation controls I mentioned (and those are limited to just a message, not buttons or anything). What is it you're trying to do?
One way to simulate a dialog is to use a hidden panel, and show it only when needed. But this can be sloppy (it works for our online app, but ours isn't a typical store front or anything)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.