Take the 2-minute tour ×

i want to display the pop ups in asp.net page like how the stack over flow show the pop ups on the top of the site (you get the new answer for the question like that in a orange color) how can i write the code is there any free source code or any reference. thank you

share|improve this question
...too many words. moved to answers section –  StingyJack May 11 '10 at 12:03
Right-Client -> View-Source? –  Robin Day May 11 '10 at 12:03
@Robin_Day, not exactly the whole story there... you just see an empty div for the most part. There is always the javascript being processed by the page, where the real magic lies, but that's part of the source for StackOverflow and I'd not want to recommend scraping that without express permission from Jeff or Joel. –  Lazarus May 11 '10 at 12:09

5 Answers 5

up vote 1 down vote accepted

Thats not a 'popup', its probably just a standard DIV that has its height and content changed dynamically. You can do a "view source" on the page to locate the item, or use firebug (easier).

After looking, its a div called 'notify-container'.

share|improve this answer
Mr. stingyjack ya it is a div. so i can i use a div on the top for registration page of my application when user register successfully i display the div in that place the text uploaded successfully am i right –  Surya sasidhar May 11 '10 at 12:09
Yep. jQuery or custom javascript will help you with the 'animation' of the div. Please, no 'Mr.'... thats my father =) –  StingyJack May 11 '10 at 15:55

Given below are the steps to achieve what you want.

  1. Have a div (a container) to show your updates
  2. Create a window.setTimeout to execute a JS function (AJAX)
  3. In that function check for updates from server
  4. Finally if there are any updates then show it in the div container
  5. When there are updates then again setTimeout to make it invisible over a period of time (say 3 secs)

To achieve this in a very easy fashion use JS libraries like JQuery.


share|improve this answer
hmm ok Mr. Raja –  Surya sasidhar May 11 '10 at 12:13

These days, all that wizzery is generally done with jQuery

share|improve this answer
hmm ok Mr. jamiec –  Surya sasidhar May 11 '10 at 12:02

The asp.net ajax control toolkit has that. Check it out here.

share|improve this answer
That page demonstrates the adding of a pop window to a control, in the example, a calendar on a date entry. –  Lazarus May 11 '10 at 12:07

I think you'll find that's done using a holding container at the top of the page, a timer to periodically query an AJAX enabled method for updates which replaces the content of the container based on the response.

share|improve this answer

Your Answer


