Last post Apr 14, 2010 01:59 PM by cgarland
Mar 17, 2010 03:11 PM|cgarland|LINK
Here is my Master page:
When I run this, the GetUnits fetchoperation does not run. If I comment out the ajaxscriptmanager, the GetUnits fetchoperation DOES run. I did try adding the individual script references for MicrosoftAjax.js, MicrosoftAjaxWebForms.js, etc., but that doesn't
change the outcome - still no data.
Can someone tell me what's wrong?!
As an FYI, I often have to clear out my temporary files (C:\windOWS\microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files) in order for the fetchoperation to start working again after I remove the ajaxscriptmanager element. In other words, I can start
with no ajaxscriptmanager, get data fine, add a ajaxscriptmanager and then, poof, no data. But when I go back and remove the ajaxscriptmanager, I have to clear out those temp files for the fetchoperation to start working again.
Mar 22, 2010 06:28 AM|Zhi-Qiang Ni - MSFT|LINK
Make sure your ScriptManager version is fit for the AJAX Library, if not, please override the default scripts by referring this:
Mar 22, 2010 03:18 PM|cgarland|LINK
As you could probably tell from the markup I included, I am using the <%@ register assembly="System.Web.Ajax" namespace="System.Web.UI" tagprefix="ajax" %>
element to register the "ajax" version of the scriptmanager; which is what I believe I need to do. The System.Web.Ajax version I am using is
Also, like I said in my original post, I DID override the default scripts and that didn't make a difference.
Also #2, everything works fine with the ajaxscriptmanager and the "ajax" scripts if everything is in the same page. This is only an issue if I move the scriptmanager to a master page.
How about one of the really knowledgable people copying my code and try to run it on your box? Should be easy enough to try.
Apr 13, 2010 10:32 AM|cgarland|LINK
Is there anyway to get help with issues like this without hoping/praying/wishing someone reads these posts and tries to offer help?
Apr 14, 2010 01:59 PM|cgarland|LINK
I noticed that the datacontext seemed to get correctly created but it seemed the dataview was NOT being activated - even after I added sys:activate="*" to the body tag. So, I got this working by "hooking" up the dataview in the content page in the onReady
event to the datacontext object and then explicitly telling the dataview to fetch its data.
dataviewInstance = $find("dataviewDIV");
dataviewInstance.fetchData(null, null, null, dataContext);
I hope this helps someone.