AJAX Control Toolkit - ModalPopupExt

I'm working on a new website that requires a lot of dynamic changes in its display. It is written using the .NET Framework 2.0 (yes, still 2.0, not anything beyond that) with the back end code written in C#.

So far it has been a challenge because writing a page that requires a lot of dynamic changes/updates to its display really requires a fundamental understanding to how the ASP.NET page life-cycle works plus some understanding on the request posting as well. Until now it has been a great pleasure to accomplish so many difficult task.

Today, it is no different from the usual mind cracking to think of a solution or more so to learn how to use something new. Although in the past I've tried to use AJAX Control Toolkit to extend the website, I'd try to avoid using them if I could because there are customers complaining that certain feature that utilizes AJAX Control Toolkit just doesn't work. This time however, it's an exception because I really need to use it, and this AJAX Control is the ModalPopupExt.

I needed this in order to provide a Modal pop-up dialog in a page for user to save something on the website before he could proceed with the other changes. The online documentation plus the tutorial is sufficient enough to kick start the development. However, during the implementation, I found out that there are something that worth noting here, which I'm not sure if it's provided in the online documentation for I'm too lazy to read all of it.

My finding:

1. If the target control is located inside a UpdatePanel, the pop-up control and the ModalPopupExt has to be inside that UpdatePanel too. Otherwise, during run-time, there will be an exception thrown saying something similar.

2. The documentation didn't explain that if OkControlID is specified, then the postback would not work. They did provide this information under different segment, but why not provide this information in the same page that describe the usage of the control?

Note that the above is the documentation for AJAX Control Toolkit version 2.0, the one for .NET Framework 2.0. They might have provided more information for the latest version.

Comments

Popular posts from this blog

Yahoo! Messenger voice call & video call disabled, why?

Sport's Injuries - Treatment for bruises

Web Development: Disable, Validate, & Enable Buttons