ASP.NET AJAX PageMethod not being called or undefined

23 08 2009

If you’re trying to call a page method from ASP.NET client code but you’re method isn’t being called or FireBug flashes the PageMethods error “PageMethods undefined” then you need to follow the following checklist:

In addition to this list, ensure you’re page method has the same no. of arguments as the client code call AND that the page method is defined as Shared in VB and Static in C#! That was the mistake I made!!


Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.