UpdatePanel does not update the display

I have an UpdatePanel inside a custom control and there are two placeholders inside that UpdatePanel. First, Visible = false is initially set, another is true. Inside the visible one, I have an ImageButton that toggles the visibility of the placeholders.

I use this control on two different pages on my site. On the home page it works as expected, on another page, clicking the button fires an event (I can put a breakpoint and it fires), but the screen doesn't refresh. None of the other buttons in the update bar seem to work.

Both pages use the same master page containing the scriptwriter.

Any ideas? I'm afraid I can't post the code due to client agreements, but I've tried to describe the situation as best I can.

0


a source to share


2 answers


Whenever I have one page that works great and another that has the same functionality but doesn't, it usually boils down to a silly little thing.

You need to grab everything from a page that is currently not working and then start building it. First, start with the refresh bar, placeholders and button. If that doesn't work, refer to another page and look at it line by line until everything starts working and starts working.



From there, just build your page until it crashes or gets executed.

0


a source


It works for me, but I'm not sure how to do it. On both pages, the custom control has been embedded in the Relay HeaderTemplate. On the broken page, removing it from the HeaderTemplate made it work as expected.



0


a source







All Articles