> ...whenever I click the button to change the mode, the ModalPopup
> closes itself. The NEXT time I open the ModalPopup, the mode has been
> changed. So the mode is changing... my problem is that I need the
> ModalPopup to stay visible.
I've had this problem before. You need to reopen the modal popup on
the server side in the DetailView's ItemUpdating event:
Protected Sub gsaunsdv_ItemUpdating(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.DetailsViewUpdateEventArgs) _
Handles <DETAILSVIEW-ID>.ItemUpdating
<MODAL-ID>.Show()
End Sub
You may want to do that in other events too (such as ItemInserting).
> Also, the DetailsView is inside an UpdatePanel within the Panel I am
> popping up. The ModalPopupExtender's OKControlID and CancelControlID
> are not within this UpdatePanel (but are inside the Panel).
I would just put all of that in the UpdatePanel to avoid problems.
-Michael Placentra II