Which two actions should you perform?

You are implementing an ASP.NET AJAX page.
You add the following control to the page.
<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)

You are implementing an ASP.NET AJAX page.
You add the following control to the page.
<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)

A.
Add the following control before the UpdatePanel.
<asp:Timer ID=”Timer1″ OnLoad=”Timer1_Tick” runat=”server” Interval=”3000″ />

B.
Add the following control within the UpdatePanel.
<asp:Timer ID=”Timer1″ OnLoad=”Timer1_Tick” runat=”server” Interval=”3000″ />

C.
Add an AsyncPostBackTrigger that references Timer1.

D.
Add a PostBackTrigger that references Timer1.

Explanation:
If the timer is put into updatepanel control, it automatically posts back and in tick even you can addcode to
modify contents of update panel. The contents do get refreshed without any postback. I tried with example.



Leave a Reply 0

Your email address will not be published. Required fields are marked *