Showing posts with label parameter. Show all posts
Showing posts with label parameter. Show all posts

Wednesday, March 28, 2012

context parameter in pagemethods

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?Angry

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 AdviceConfused