Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please explain me update mode and Rendermode in update panel

XML
<asp:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                           <ContentTemplate>
                               <span class="button">
                                   <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                               </span>
                           </ContentTemplate>
                       </asp:UpdatePanel>
Posted

The RenderMode[^] property defines how the UpdatePanel is rendered in HTML. Using Block means the element is rendered as a div, while Inline renders the element as a span.

The UpdateMode[^] property defines what triggers the UpdatePanel to update itself. Again, there are two choices: Conditional and Always (default). When set to Always, the UpdatePanel will update itself on a postback from any of the child controls. While Conditional means you can define specific triggers (or update it manually, using the Update[^] method), e.g. you might only want to update the panel when a certain button is clicked.
 
Share this answer
 
Comments
anurag19289 30-Jul-13 6:53am    
excellent... Thanks..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900