DataSet ds = sql.getds("select title from admin_notification ");
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert", "<script>showpop('" + ds.Tables[0].Rows[i]["title"].ToString() + "','" + "title" + "')</script>", false);
}
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<script type="text/javascript">
function showpop(msg, title) {
debugger;
// alert("ok");
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-bottom-left",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "120000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
// toastr['success'](msg, title);
var d = Date();
toastr.success(msg, title);
return false;
}
</script>
why toast msg not working on master page????on other pages only first msg showing in toast msg,not showing all msg.how to show all msg???