As promised, I FINALLY have put together a comprehensive example that shows my problems with queued script timings. You will find that sometimes this exampe will work and sometimes it will not work (and you will get errors related to the "Model" class not existing).
You can download the zipped project here. It contains a full example of the Model-View-Controller type pattern I was using (inside the Queued.Framework assembly) as well as some data binding hookups on a derived AjaxTextBox control contained therin. You will see scripts related to the actual page to be loaded, scripts inside of the assembly, etc.
There is inheritance in the Javascript as well, as reflected by the base model, controller, and input control objects in the Queued.Framework.Common folder, where the base script reside.
The only thing that does not work on the sample page is the "Add" functionality. I did not take the time to fully implement that, because it really has nothing to do with the error. However, it shows an example of what I was trying to accomplish. Imagine 80 of these controls on a page at once (inside of tabs, etc. so they would not necessarily all be visible at once).
When you click "select" from the results table of the initial web service call, you will see the contents of the text box controls change, which is the purpose of the homegrown data binding "replacement" technique, so I can not rewrite wire-up code for 80 instances of these controls. This architecturally explains the need for the controller and model constructs.
Feel free to pick at the architecture. Tell me if there is something I should have done different or if I am on the wrong track as far as how I wired all this up.
Thanks for your time. This will take a bit of time to look at. It is a lot of code for a simple example, but the applications I am really writing need this type of framework (or something like it). Otherwise, I would never finish any non-trivial project. I would spend months just handling the placement and wire-up of text boxes, etc. for objects with lots of properties.
The final goal is to generate pages that do editing and display from metadata in my database, so I never have to write much of this code at all. I had CodeSmith based templates already for Beta 1 of ASP.NET Ajax, and that worked great! I looked like a genius that could whip out an entire AJAX application in minutes. I want that feeling back and cannot get it until I have a reliably functioning pattern that I can then "template" and "generate."
If this ever works in that manner, I will wrap my base code for doing this up as a library and put it on CodePlex for all to use. When this worked, it cut down the time for building properly tiered user interfaces from weeks to days. It was cool until I tried to switch to Beta 2.