How to refresh master page in every 10 seconds? means all data of master page will come updated in every 10 second, if any updation there.i used timer tick event on master page, but it's not updating on master page, if i use this timer tick event on any other page, then it works well.
it's working on all pages, but if i try it on master page then it's not working(tick event of ajax timer)
protected void Timer1_Tick(object sender, EventArgs e)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert" + i, "<script>showpop('" + ds.Tables[0].Rows[i]["title"].ToString() + "','" + "title" + "')</script>", false);
}
}
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:Timer runat="server" ID="Timer1" Interval="10000" OnTick="Timer1_Tick" ></asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript">
function showpop(msg, title) {
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>