The context parameter in pagemethods is being lost
Here is what I do
var contextArray = new Array(2)
PageMethods.DoSomeMethod(param1,param2,param3,OnSucceeded, null,null,null,contextArray)
function OnSucceeded(result, response, context)
the context array shows ASPX_defult_DoSomeMethod
Why is it not returning the contextArray that I passed?
So I checked the internals of PageMethods using debug.traceDump and I can see that after calling PageMethods.SomeMethod the _usercontext variable does not get set
Infact I have to set it using PageMethods.set_defaultUserContext
Am I missing a library or are the parameters for PageMethods.DoSomething not correct !!!
Please Advice
No comments:
Post a Comment