Mar 10, 2010, 10:25 PM
Window and Validators in UpdatePanel
V .8.2
I have a Windows nested within an update panel and use CooliteScriptManager.AddUpdatePanelToRefresh() to update the window. I have a couple questions.
1. When the callback occurs, it appears that javascript destroys and recreates the current window. Can't it just do a check to see if the component already exists?
2. Lets say i am toggling the visbility of a validator. It seems as though the destroy and recreate of the window corrupts the event handlers that remove the validator from Page_Validators. If i toggle visibility on a validator in a callback, the Page_Validators does not update and the page will attempt to perform validation on controls that no longer exist. Question/Suggestion #1 may solve the problem.
Does V1 have better support for these type of scenarios?
Thanks,
Matt
I have a Windows nested within an update panel and use CooliteScriptManager.AddUpdatePanelToRefresh() to update the window. I have a couple questions.
1. When the callback occurs, it appears that javascript destroys and recreates the current window. Can't it just do a check to see if the component already exists?
2. Lets say i am toggling the visbility of a validator. It seems as though the destroy and recreate of the window corrupts the event handlers that remove the validator from Page_Validators. If i toggle visibility on a validator in a callback, the Page_Validators does not update and the page will attempt to perform validation on controls that no longer exist. Question/Suggestion #1 may solve the problem.
Does V1 have better support for these type of scenarios?
Thanks,
Matt