PageMethods for VS 2005 released - well-defined URLs for your ASP.NET sites and applications
PageMethods for Visual Studio 2005 has just been released. This version offers the same support as the version for VS 2003, plus some additional features.
PageMethods proposes a new code model that enables well-defined URLs and simplifies working with hyperlinks for your ASP.NET sites and applications.
PageMethods enables reliable URLs.
Linking to a web page is very easy, both in simple HTML and in ASP.NET. Linking to a page that really exists, passing the right parameters, and parsing these parameters, is a bit different.
PageMethods takes care of your URLs. It proposes a solution to define structured URLs for each of your pages, as well as a clean and simple way to call them.
The idea is based on strict page inputs and declarative parameter binding. With
PageMethods, each page exposes a set of methods that represent the different ways to call the page. All you have to do to start benefiting from sharp, reliable URLs is to add methods to your pages, and mark these methods with attributes provided by
PageMethods.
Here is how you would declare a page method:
[PageMethod]
protected void DisplayCustomer(int customerID)
{
...
}
Here is how you would refer to the page declaring this method:
MyHyperLink.NavigateUrl = MyPageMethods.Customers.CustomerPage.DisplayCustomer(1234);
Features include:
- Object-oriented approach for hyperlinks
- No concatenations of strings required anymore
- Strongly typed parameters
- Automated parameter handling
- Parameter validation
- Compile-time checks
- Code completion
- Integrated with Visual Studio
- Support for HTTP GET and HTTP POST (new)
- Support for arrays and custom objects (new)
PageMethods is available for
free.
Learn more on the dedicated site, where you'll find:
- an introduction
- a walkthrough tutorial
- details about the features and benefits
- and of course a page to download the product.
See
http://metaSapiens.com/PageMethods Don't forget to let me know what you think about the product, and what your experience with it is!