Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using ServiceStack with WebForms applications


There are a great many ASP.NET WebForms applications in production environments of enterprises today. Many of them are still maintained and augmented with new features, bug fixes, and integrations with other systems. It can be useful to run ServiceStack side by side with these legacy applications. You might want to create a new service on the existing code base to leverage existing data models and expose application data, but you might not want to use the traditional ASMX, WCF, or even Web API to share this data.

Getting ready

In this recipe, we'll discuss how to run ServiceStack services side by side with ASP.NET WebForms applications. We'll start with a basic WebForms application to illustrate this concept. Largely generated from the ASP.NET WebForms New Project template, this example should look familiar to many:

<%@ Page Title="Greeting Generator" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx...