Showing posts with label version. Show all posts
Showing posts with label version. Show all posts

Monday, March 26, 2012

PageMethods object missing in RTM?

I tried to convert some code from the last RC to the RTM version that called PageMethods.MyMethod(), but the PageMethods object doesn't appear to be working anymore.

I started out with a fresh web.config from the RTM bits, so I know this isn't the problem.

I'm also hear anecdotally from other colleagues that the UpdatePanel control isn't working, or isn't working the way it did in the last RC.

Any feedback would be appreciated.

Hi Look at the following post:

http://forums.asp.net/thread/1545311.aspx

You need to set EnablePageMethods property of ScriptManager to true.


Sure enough. That did the trick.

Thanks for the tip!Wink


Sure enough. That did the trick.

Thanks for the tip!Wink

PageMethods....exists different way?

Hi,
i just installed newest version of ASP.NET AJAX and i was looking for an alternative way to PageMethods. PageMethods, if i'm not wrong, work only in page and not in UserControl (i need for that).
I found AjaxNet Pro that permits that but i don't want use other dlls in my project.
Any idea how to call UserControl's Methods with ASP.NET AJAX?

Thanks in adavance ;)

I'm having the same issue. I want to use PageMethods to call my UserControl codebehind methods. Is there a way to do that?

Saturday, March 24, 2012

PaheMethods is undefined since upgrade to ASP.NET AJAX 1.0

Since I upgraded from the RC to the RTM version, my callbacks fail when invoking the PageMethods. Checking the html, the PageMethods are no longer being declared, hence the error. Any ideas what may have changed since this release?

Since I upgraded from AJAX RC to RTM today, my PageMethod calls no longer work. Looking at the html, they are no longer declared, hence the error. Any one know whats changed to cause this?
Found it. Seems like theEnablePageMethods attribute on the script manager is now required to be set.