Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to keep ModalPopupExtender after full PostBack?

0
Posted

How to keep ModalPopupExtender after full PostBack?

0

When a ModalPopupExtender is already opened, it will be closed after a full PostBack. This’s because its client side state(opened or hidden) isn’t maintained automatically. As a result, it will always be hidden initially after a full PostBack. To solve this, we have following options: • Avoid using full PostBack by putting an UpdatePanel inside the ModalPopup. • Save and restore its state manually on client side. Below are two examples for each option: Option 1: <%@ Page Language="C#" %> Untitled Page

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123