AI OnAI Off
//In your OnInit method
FormControl.AfterSubmitPostedData += new SaveFormDataEventHandler(FormControl_AfterSubmitPostedData);
// Your event method could look something like this
public void FormControl_AfterSubmitPostedData(object sender, SaveFormDataEventArgs e)
{
if (FormControl.FormDefinition.IsSent)
{
if (FormControl.FormDefinition.PageAfterPost != 0)
{
PageData pd = GetPage(new PageReference(FormControl.FormDefinition.PageAfterPost));
Page.Response.Redirect(pd.LinkURL);
}
}
}
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="XForm.ascx.cs" Inherits="development.Templates.Units.XForm" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="EPiServer" Namespace="EPiServer.WebControls" Assembly="EPiServer" %>
<%@ Register TagPrefix="XForms" Namespace="EPiServer.XForms.WebControls" Assembly="EPiServer.XForms" %>