Search code examples
javascriptjqueryasp.netalertstack-overflow

writing a jquery Alert like Stackoverflow and join it to server-side


A asked this question few days ago but could not find my answer.

Alert box like stackoverflow dynamic data

I am surfing on internet for few days with no good. Some of them are usefull but message is appearing when the page loads.

What i want is when a user fires an event all the messages should appear on top of page like this

enter image description here

For this I tried this answer Call jquery from code behind but the result was not i want. Is their any other way?

Stackoverflow uses almost the same. When an answer is submited message appears at top of the window.

Note: Using ASP.Net WebForms.

Thanks for your time.


Solution

  • If you want to integrate notifications, try some jquery plugins which makes task easy with cool UI.

    1. jbar
    2. pnotify
    3. toastr (as comment added below by Ravi)

    you can use ClientScript.RegisterStartupScript to call javascript function as well.