Showing posts with label context. Show all posts
Showing posts with label context. Show all posts

Wednesday, March 28, 2012

PageMethod Context parameter

var context = new Array()

I am trying to invoke PageMethod.DoSomething(parameter1, parameter2, OnSucceeded, null,null,null,context)

so context is an array

But in the OnSucceeded(result,response,context) the context parameter contains the name of the page and the method called. It is not returning back the context that I called it with.

Any help will be greatly appreciated.

Thanks

Try to?take?a?look?at?this?blog?about?how?to?use?PageMethod?in?Ajax?RC?1.0?-?http://blogs.gotdotnet.com/robj/archive/2007/01/05/pagemethods-in-asp-net-ajax-1-0-rc.aspx
Wish this can help you.

Monday, March 26, 2012

PageRequest context

I know the WebRequest class in js has a userContext property but how do I do the same in a PageRequest class.

Maybe I am asking the wrong question.

I want to keep track of which control raised the event (postBackElement property) so that when the request completes, I can set some properties for the control that raised the event.

Thanks.

Try to take a look at this link?about?WebRequest from MSDN -?http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx
Is?PageRequest Class?you?said?in?your?last?post?in?Java? If?yes,try?to?take?a?look?at?this?link?about?PageRequest?Class
http://docs.jboss.org/jbportal/v2.2/javadoc/org/jboss/portal/theme/page/PageRequest.html?
http://www.valtira.com/api/cms/com/valtira/cms/client/PageRequest.html
Wish the above can give you some helps.