Last post Feb 21, 2010 09:07 PM by Jim Wang
Feb 20, 2010 06:12 PM|zbychuk|LINK
I am porting application from older version of ajax to the ajax library 0911. Application written in .net 3.5.
I have changed <asp:scriptmanager to <jaxToolkit:toolkitscriptmanager
All toolkit functionality works great, even UpdatePanel works.
The only problem I have is with loading roles for the user. function Sys.Services.RoleService.load is undefined, although Sys.Services.RoleService is defined and contains method set_path().
I guess I am not loading one of the files.
My code is (aspx):
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true"
EnableScriptLocalization="true" EnablePageMethods="true" />
<asp:ServiceReference Path="~/Services.asmx" /> <asp:ServiceReference Path="http://xxx.net/Services.asmx" />
Initially roles are loaded (RoleService LoadRoles="true", but I cannot reload them later
Feb 21, 2010 09:07 PM|Jim Wang|LINK
MicrosoftAjaxApplicationServices.js now needs to be included explicitly as a ScriptReference. Try adding a <Scripts> section to your ToolkitScriptManager and adding <asp:ScriptReference Name="MicrosoftAjaxApplicationServices.js"/> to it.