Mohammad Aman

Mohammad Aman

  • Tech Writer
  • 327
  • 72.4k

How to implement notification on Master Page Like Facebook

Sep 17 2015 7:45 AM
I am implementing Notification like facebook on my master page by using UpdatePanel and Timer But it is updating whole web application. Any one can tell me how may i prevent it for updating all other controls. My Code is:
 
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
<ContentTemplate>
<asp:DataList ID="DataList_Notification" runat="server" OnItemCommand="DataList_Notification_ItemCommand">
<ItemTemplate>
<table>
<tr>
<td>
<asp:HiddenField ID="ProductId" runat="server" Value='<%# Eval("ProductId") %>' />
</td>
<td>
<asp:HiddenField ID="OperationId" runat="server" Value='<%# Eval("OperationId") %>' />
</td>
<td>
<asp:HiddenField ID="ProficiencyId" runat="server" Value='<%# Eval("ProficiencyId") %>' />
</td>
<td>
<span class="label label-important"><i class="icon-bolt"></i></span>
<asp:LinkButton ID="lbnNotification" runat="server" Text='<%# Eval("PriceProficiency") %>' CommandName="Notification" ></asp:LinkButton>
<span class="small italic"></span>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="9000000" ></asp:Timer>
 

Answers (1)