C# 클래스 FormProcessor.Gateway

파일 보기 프로젝트 열기: BellevueCollege/FormsProcessor

보호된 프로퍼티들

프로퍼티 타입 설명
ReturnLink global::System.Web.UI.WebControls.Literal
ReturnUrl global::System.Web.UI.HtmlControls.HtmlAnchor
form1 global::System.Web.UI.HtmlControls.HtmlForm

보호된 메소드들

메소드 설명
Page_Load ( object sender, EventArgs e ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

Page_Load() 보호된 메소드

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

프로퍼티 상세

ReturnLink 보호되어 있는 프로퍼티

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
리턴 global::System.Web.UI.WebControls.Literal

ReturnUrl 보호되어 있는 프로퍼티

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
리턴 global::System.Web.UI.HtmlControls.HtmlAnchor

form1 보호되어 있는 프로퍼티

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
리턴 global::System.Web.UI.HtmlControls.HtmlForm