Sunday, March 11, 2012

ModalPopUp and UpdatePanel issue

Add this line of code to your buttons event handler:ModalPopupExtender1.Show()

protectedvoid btnAsyncCall_Click(object sender,EventArgs e)

{

txtInput.Value =

"hello";

ModalPopupExtender1.Show();

}


I've tried that in the past and it does not work with the above scenario. The popup stops working after the async postback. But thanks for the inputSmile

it should work, since i am doing the exact same thing. are you using rc1 and the latest build of the toolkit? If not, try that first.

Another thing you can try is putting a flag, either was a viewstate variable or a hidden field that indicates if the modal window should stay open, and check the flag and use the .show() in the Page_Load event.

No comments:

Post a Comment