<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TeamWebAPI_Example2.aspx.cs" Inherits="WebAPIClient.TeamWebAPI_Example2" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>CORE 2.0 WebAPI Example</title>

</head>

<body>

    <h3>This example demonstrates using an HTTP POST Request sent to a Core 2.0 WebAPI. The WebAPI accepts the input data as Form Data,

        JSON data, and a C# Team object.

    </h3>

 

    <form id="form1" runat="server">

         <table>

            <tr>

                <td>Enter the team's name: </td>

                <td><asp:TextBox ID="txtTeamName" runat="server"></asp:TextBox></td>

               

            </tr>

            <tr>

                <td>Enter the team's university: </td>

                <td><asp:TextBox ID="txtUniversity" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td>Enter the team's mascot: </td>

                <td><asp:TextBox ID="txtMascot" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td colspan="2">

                    <asp:Button ID="btnStoreTeam" runat="server" Text="Store Team" OnClick="btnStoreTeam_Click" />

                </td>

            </tr>

        </table>

 

       

        <br />

        <asp:Label ID="lblMessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>

        <br />

    </form>

</body>

</html>