Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop-ups

Status
Not open for further replies.

gd082

Programmer
Mar 12, 2002
42
BE
Is it possible to make pop-ups in ASP.NET? If it is possible, how could we do this?
 
Depends what you want the pop up to do.

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.

jack
 
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)

jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top