.NET - Written by typemismatch on Wednesday, October 31, 2007 1:18 - 0 Comments

ASP.NET Ajax PageMethods

Tags: ,

If you haven’t yet used Page Methods then you’re really missing out. These allow you to create in-page web service methods that can then be called from the client.

This is a quick tip about where these methods can be embedded. It took me awhile to figure out why my newly added methods would not appear in the client javascript. I was using ASCX (user controls) and had the code in the user control code behind file. This will not work and the required javascript won’t ever get generated.

Page Methods must always be defined in the aspx.cs file!

-c

  • Digg
  • del.icio.us
  • Facebook
  • Technorati
  • StumbleUpon


Leave a Reply

Comment

Most Popular Content

Electronics, iPhone - Aug 3, 2008 12:14 - 0 Comments

iPhone Battery Tip

More In Electronics


MultiCore - Jul 30, 2008 22:38 - 0 Comments

Here comes MultiCore

More In MultiCore


Software - Oct 20, 2008 21:04 - 0 Comments

Silverlight Tip - Initialize!

More In Software