Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Want to thank those people who have made this forum such a valuable place to visit each day..."

Geography

Where in the world do Tek-Tips members come from?
gd082 (Programmer)
19 Mar 02 2:33
Is it possible to make pop-ups in ASP.NET? If it is possible, how could we do this?
jfrost10 (Programmer)
19 Mar 02 20:31
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
jfrost10 (Programmer)
19 Mar 02 20:54
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

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close