AjaxToolKit - ModalPopup conflicts with the current stable version

Posted by Guilherme Cardoso on Geeks with Blogs See other posts from Geeks with Blogs or by Guilherme Cardoso
Published on Thu, 13 May 2010 12:43:36 GMT Indexed on 2010/05/13 13:55 UTC
Read the original article Hit count: 628

Filed under:
For those who are using the current stable version of AjaxToolKit (40 412) will face an annoying problem.

The ModalPopup cannot be used together with an UpdatePanel and one textbox. This is because during the postback, the value of the textbox will be changed and added a comma.
That is, if we use a ModalPopup to have a form and then we add a database, the value "Antonio" in the text box will be entered as "Antonio."

I've been researching a bit and this bug is even launching this version. To counter this I'm using the stable 30 512 May 2009 - http://ajaxcontroltoolkit.codeplex.com/releases/view/27326

One detail I noticed was that the ModalPopup OkControlID on the property. If we define the event does not occur (example: If this button is add the data to the database, the panel controlled by ModalPopup disappears but not to add the event occurs).

Therefore it is best not declare anything on this property, it works without problems the same.

© Geeks with Blogs or respective owner