views:

153

answers:

5

Hello. I am making a web application and I want for when the user clicks a certain button for there to be a "pop up." Not really a pop up, but rather a little window in the browser is created and the rest of the screen is unable to be edited and is darker. Face book has such an effect, but I can't recall where. Also, this http://demo.atmail.org/ has that effect. How the login window is above the regular window and the regular window can not be touched.

What exactly is that effect called(so I can search for it!) and does C# have anything that can do that without hand coding the javascript?

+1  A: 

Use a Modal Popup

Yuriy Faktorovich
+3  A: 

That is called a modal popup. It's an AJAX feature and is not included in any library that comes with Visual Studio. However, the ASP.Net AJAX control toolkit can do it and jQuery can do it as well (as seen here.

Michael Todd
+6  A: 

That's part of the AJAX Control Toolkit, and it's called the ModalPopup control. Or something like it.

tsilb
But that doesn't disable anything else in the page.. though I suppose I could use CSS to make it look more "window"ish..
Earlz
What browser are you using? It disables everything on chrome and IE
Yuriy Faktorovich
gah! it does, it just doesn't change cursors.. ugh. My second dumb question of the day..
Earlz
Note you can change the cursor via CSS.
tsilb
+2  A: 

A modal popup, typically done in a javascript library such as jQuery UI (look at the right-hand-side for the various demos)

Marc Gravell
+1  A: 

Try the keyword "lightbox". I believe that's the effect you are looking for.

Matthew Iselin