C# Class FormProcessor.Gateway

ファイルを表示 Open project: BellevueCollege/FormsProcessor

Protected Properties

Property Type Description
ReturnLink global::System.Web.UI.WebControls.Literal
ReturnUrl global::System.Web.UI.HtmlControls.HtmlAnchor
form1 global::System.Web.UI.HtmlControls.HtmlForm

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void

Private Methods

Method Description
DisplayResult ( FormSettings settings, ResultActionBase result, Guid recordID, IEnumerable fields = null ) : void

ForceRedirect ( string url ) : void

Replacement for Response.Redirect() when the latter is not working properly

Sometimes instead of actually redirecting the user, the browser displays the message "Object moved" with link to the redirect destination. Since this is not desired behavior, I've implemented this function according to this KB article: http://support.microsoft.com/?id=193489 and this forum post: http://forums.asp.net/t/1271142.aspx/1

GetFormSettings ( Guid &formId ) : FormSettings

Retrieves the settings for the form currently being POSTed

RecordRequest ( ) : void

ReturnHttpError ( int statusCode, string statusDescription = null, bool endResponse = true ) : void

Sends specified HTTP status code back to the client and aborts any remaining Response content

SaveToDatabase ( FormSubmission form, XmlDocument data ) : Guid

Saves form data (including XML representation) to the database

SendEmails ( FormSettings settings, XmlDocument data ) : bool

Sends form POST as e-mail to specified recipients

SetReturnLink ( string linkText, Guid recordID ) : void

TransformToEmail ( FormSettings settings, XmlDocument form ) : string

Apply XSLT template for E-mail

Method Details

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Property Details

ReturnLink protected_oe property

ReturnLink control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal ReturnLink
return global::System.Web.UI.WebControls.Literal

ReturnUrl protected_oe property

ReturnUrl control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlAnchor ReturnUrl
return global::System.Web.UI.HtmlControls.HtmlAnchor

form1 protected_oe property

form1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlForm form1
return global::System.Web.UI.HtmlControls.HtmlForm