Form Center


Form Center
 





Create an External Integration Web Page

Overview

The External Integration Web Page is a custom web page on your system that receives requests from an external integration form and returns either an XML or HTTP response. Any programming language can create the external integration web page, and any web server can host it. The only requirement is that it can receive an HTTP POST and return either an XML document or an HTML document.

For our example, we will create an external integration web page via a simple ASP.NET Web Forms page. We will call the web page TrashCollectionDay.aspx, and it will contain the following code.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TrashCollectionDay.aspx.cs" Inherits="TrashCollectionDay" Debug="true"%>

<!DOCTYPE html>

<script type="text/C#" runat="server">

public string trashCollectionDay ="";

protected override void OnLoad(EventArgs e)

{

// Get the address the user entered into the Form Center form (NOTE:

// This is passed as a POST parameter, not a querystring parameter.

string address = Request.Form["txtAddress"];

if (address ==null)

address = String.Empty;

if (address.Contains("Main St"))

{

trashCollectionDay = "Monday";

}

else if (address.Contains("First St"))

{

trashCollectionDay = "Tuesday";

}

else if (address.Contains("Second St"))

{

trashCollectionDay = "Wednesday";

}

else

{

trashCollectionDay = "Unable to find collection day";

}

base.OnLoad(e);

}

</script>

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

<head runat="server">

<title></title>

</head>

<body>

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

<div>

<input type="text" name="txtTrashCollectionDay" value="<%=trashCollectionDay%>"

</div>

</form>

</body>

</html>



I'd Like to Request an Enhancement

0 out of 1 found this helpful

Updated:
Follow

Article Feedback

  • Avatar
    Mark Goodfellow

    I need to know how to integrate and ASP webforms project that has already been developed in Visual Studio. It's an application, not a single web form.

  • Avatar
    Jackson Wright

    Hi Mark,

    If you want to integrate a separate site with Engage, then there are APIs for most modules. A great starting point for that would be our article APIs and CivicEngage (https://www.civicengage.civicplus.help/hc/en-us/articles/115004748093-APIs-and-CivicEngage).

    At this time, we do not support merging any existing applications into an Engage site, and we cannot host third-party software.

    For any additional assistance in setup or questions surrounding API integration, please contact Support (https://www.civicengage.civicplus.help/hc/en-us/requests/new).

    Thank you,
    Your Help Center Team