ASP.NET Hosting

PageMethods for VS 2005 updated to version 1.5.1

PageMethods for VS 2005 has been updated with various fixes and improvements. Note that an FAQ is now available.

Please update your version. Please uninstall the previous version first.

Details about the updates since the official release:
  • version 1.5.1.0 (bug fixes and improvements)
    • It is now possible to activate and deactivate the PageMethods add-in directly from projects' properties, without having to proceed through the Web.config file.
    • PageMethod's strong-named assembly can now be called in shared web hosting environments (details).
  • version 1.5.0.2 (bug fixes)
    • PageMethods was not handling correctly projects under IIS.
  • version 1.5.0.1 (bug fixes)
    • Take into account the additional namespace added in Web.config when using the ASP.NET Configuration tool, as described here.
    • Added some code to keep Intellisense (code completion) more in sync with your modifications.
    • Added some code to avoid problems with some kinds of projects (like SQL Server Reporting Services projects).

5 Comments

  • Not sure if this is a bug or a misunderstanding on my part..



    I'm using 1.5.1.1 with the following code:



    Public Property TestId() As Integer

    Get

    Return _testId

    End Get

    Set(ByVal value As Integer)

    _testId = value

    End Set

    End Property



    Private _testId As Integer



    <PageMethod(True)> Public Sub TestSections(ByVal testId As Integer)

    'Me.TestId = testId

    End Sub



    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    MetaSapiens.PageMethods.PageMethodsEngine.InvokeMethod(Me)

    End Sub



    What I would expect is that as TestSections is marked as the default pagemethod, that it would be processed, and when i call this page with testid=123, that the PageMethod code grabs the 123 and passes it through. But it isn't doing this.



    -dave

  • And pretend that I didn't comment out the body of the TestSections bit.



    -dave

  • Hello Dave,



    Yes, you are missing just one small thing. Try to call PageMethodsEngine.InvokeMethod(Me, True) instead of PageMethodsEngine.InvokeMethod(Me).

    This extra parameter is named handleDefaultMethod :-)



    Fabrice

  • yes, that does the trick.



    Just wondering why isn't this the default?



    -dave

  • This is to avoid the extra cost of looking up for the default method among all the methods of the page.

Comments have been disabled for this content.