Skip to content
Loading
Notify JS Locationplace this script in the last, just before the closing body tag of layout.
 
  1. @if (TempData["Message"] != null)    
  2.         {    
  3.             "text/javascript">    
  4.             window.onload = function () {    
  5.                 var message = "@TempData["Message"]";    
  6.                 $('.notifications').notify(message, {    
  7.                     color: "#D44950",    
  8.                     type: 'success',    
  9.                     icon: 'check',    
  10.                     animation: true,    
  11.                     animationType: 'drop',    
  12.                     close: true    
  13.                 });    
  14.             };    
  15.                 
  16.         }    
0
  • Hi Sachin
     
       Can u pls explain in little more detail
     
    Thanks 
    0
  • Sachin Singh

    don't use global notification, instead use a div element and place that wherever you want your notification to come as shown below.

     

    1.     

    2.    
       
  •   ??????


    @if (TempData["Message"] != null)  
            {  
                 
            }  

    0