asp.net - Multiple UpdatePanels and state -


I have a user control that has multiple update panels


< P> On page load, I dynamically load a child's user control on placeholder (I do it all the time and do not check for postback)

I create the status of those changes I want to be able to keep one user built in child user control (child's HTML control) with user Aspi.an control. Control and other custom controls.

Whenever a click on the button A or B occurs, the child loses user control state, which is the reason for postback has been set to Mode for UpdatePanels conditional.

In OnPageLoad,

  1. I load a child control in placeholder A.
  2. This child is controlling one user's user control with lots of JS user The form can change the child's control.
  3. When they click on the button A, which is a part of parental control, due to the OnPageLoad the client causes the reloading of hair control to lose the changes. Has been made by a user.

I want to stop it from happening.

The HTML structure of the ASPX page is here

  & lt; UpdatePanel1 & gt; & Lt; UpdatePanelChild1 & gt; & Lt; Button A & gt; & Lt; Button B & gt; & Lt; / UpdatePanelChild1 & gt; & Lt; UpdatePanelChild2 & gt; & Lt; PlaceHolderA & gt; & Lt; / UpdatePanelChild2 & gt;  

When dynamically add control, you will All I have to do is encounter similar difficulties every time I load your page, and I do it in two ways where dynamic areas are added, where I fill the page or add myself Clicking, I will actually add a hidden control on the page. By creating such a placeholder, the system has started to handle Tim ETO in an efficient way and it keeps users' changes safe. The second issue I've heard from you that there may be a problem with the Cheyech Update panel updates. It's okay to set your code to conditional bux tin, if you need it by code, then you can trigger updates in the teapple rpm. You can also wrap all the updated panels in the second panel, but I advise against it because it destroys resources.


Comments