Click here to Skip to main content
14,576,812 members
Rate this:
Please Sign up or sign in to 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">
       <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
       <asp:Button ID="Button1" runat="server" Text="Button" />
      <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />

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
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100