Skip to content
Loading
0
  • 0
    Hi Sachin
     
       Can u pls explain in little more detail
     
    Thanks 
    0
  • Sachin Singh
    0
    place the given div tag in your Layout's Header (Navbar)
    1. class="row">      
    2.   
    3.     class="notification w-50 mx-auto">  
      
  •   
  • place 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