1

次のように、マスターページにコードがあります。

<asp:Timer ID="Timer1" runat="server" Interval="10000" ontick="Timer1_Tick"></asp:Timer> 
    <asp:UpdatePanel ID="updateNotifications" runat="server" UpdateMode="Conditional">
     <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
     </Triggers>
     <ContentTemplate>                                                        
        //Content                         
    </ContentTemplate>                        
   </asp:UpdatePanel> 

これは正常に機能しており、定義された間隔でコンテンツを更新しますが、コンテンツ ページのすべての更新パネルも更新します。この更新パネル内のコンテンツのみを更新する必要があります。私も試してみUpdateMode="Conditional"ましUpdateMode="Always"たが、助けにはなりませんでした。

4

0 に答える 0