I want to show a Toast notification in my Asp.Net website when a user clicks the Login button after providing the user name and password. If the login is successfull, a welcome toast notification should appear. Right now I have following code in my master sheet.
$(document).ready(function () {
setTimeout(function () {
toastr.options = {
closeButton: true,
progressBar: true,
showMethod: 'slideDown',
timeOut: 4000
};
toastr.success('Welcome here', 'Welcome to SPSL');
}, 1300);
});
But the problem is this appears every time I navigate to a different page (Since this is in the master sheet). How do I get this to be shown only once when the user successfully logs into the system?