Friday, February 21, 2020

How use hidden field value in updatepanel

Any asynchronous round trips to the server will cause only those controls within the UpdatePanelitself to update on the UI, so even though the code-behind runs and updates the hidden fields, on the front end they stay the same because they sit outside the panel.

Try moving the hidden fields within the <ContentTemplate> tag

<asp:UpdatePanel ID="upTripsGrid" runat="server" UpdateMode="Always">
  <ContentTemplate>
         <input type="hidden" runat="server" id="hidCurrentDate" value="" />
         <input type="hidden" runat="server" id="hidTripIds" value="" />
  </ContentTemplate>
</asp:UpdatePanel>

No comments:

Change default Port on Next.js app

 If any other app or process is running on port 3000 , you will get this error in your terminal Port 3000 is already in use. error Command f...