CSLA, ASP.NET and AJAX ModalPopupExtender - how do I not load an object when the ModalPopup is not visible
CSLA, ASP.NET and AJAX ModalPopupExtender - how do I not load an object when the ModalPopup is not visibleOld forum URL: forums.lhotka.net/forums/t/8330.aspx
pkouzov posted on Monday, January 11, 2010I am in the middle of an ASP.NET project where I am using the CSLA framework and the AJAX ModalPopupExtender control. I have used CSLA and the ModalPopupExtender in different projects before, but this is the first time I am using them together.
The way I want it to work is for the user to push a button, which will create an instance of an object and show the modal popup. The popup has controls bound to a CslaDataSource, based on the object that was just created.
My current workaround is to create a dummy object upfront, just so there is something the controls on the popup can bind to initially. I then replace that object when the user pushes the button. I am wondering if there is a simpler way with less overhead that I may be missing.
Copyright (c) Marimer LLC