javascript - Displaying a nice message box in ASP.NET -


does knows nice , simple message box can used in asp.net display user handle possible errors, , stuff that...

i've tried following code:

else{          string csname1 = "popupscript";          string cstext1 = "<script type=\"text/javascript\">" +                           "alert('error adding product');</" + "script>";          registerstartupscript(csname1, cstext1);     } 

it want design poor , terrible. there other ways display little bit more fancy message box, maybe smooth transition ??

all appreciated!

you should @ john papa's toastr. it's lightweight client-side notification plugin...

toastr.error('error adding product', 'error!')  

you have toastr.info, toastr.success, toastr.warn, styled appropriate colours.

there's configurable demo here worth checking out, along demo in comments.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -