Using PerlNET Components in ASP.NET

We saw the power of ASP.NET in conjunction with PerlASPX when authoring Web Forms and providing the server code in Perl for these forms. However, the ability of using existing PerlNET components as back-end in ASP.NET makes this platform perfect for authoring robust Web applications by putting the business logic in separate, independent .NET assemblies.

Roulette Component

We demonstrate this concept using the Roulette component we presented in Chapter 12. We altered its functionality to be suitable for more general use. The full code resides in the RouletteBackend folder under this chapter's samples. Here we present the fragments with major changes.

 # # - ASP.NET Back-end # package OI::Samples::Roulette; ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.