Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi -

I have an update panel on my page just to update a specific piece of information when a user makes a selection. Problem is the update panel is refreshing the whole page. I've added the trigger and specifically associated the button. Toggled the update mode between conditional and always and still the whole page is updating.

Any suggestions?

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
       <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
       <asp:Button ID="Button1" runat="server" Text="Button" />
    </ContentTemplate>
    <Triggers>
      <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                     </Triggers>
</asp:UpdatePanel>


and on page load i have just a regular label with the date time now. When clicking the button in the update panel its refreshing the whole page include the label out side of the update panel
Posted
Comments
jgakenhe 17-Jul-15 23:59pm    
Try moving your button outside of the UpdatePanel; below it.
Troy Bryant 20-Jul-15 8:08am    
nope that still refreshed the whole page

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