SaaS CMS has officially launched! Learn more now.

Class Submit

Summary description for Submit.

Inheritance
System.Object
Submit
Implements
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
Namespace: EPiServer.XForms.WebControls
Assembly: EPiServer.XForms.dll
Version: 7.19.2
Syntax
public class Submit : XFormControlBase, IPostBackDataHandler, INamingContainer, IPostBackEventHandler

Constructors

Submit()

Declaration
public Submit()

Fields

SEND_MAIL

Declaration
public static string SEND_MAIL
Field Value
Type Description
System.String

SEND_TO_CUSTOM_URL

Declaration
public static string SEND_TO_CUSTOM_URL
Field Value
Type Description
System.String

SEND_TO_DATABASE

Declaration
public static string SEND_TO_DATABASE
Field Value
Type Description
System.String

SEND_TO_DATABASE_EMAIL

Declaration
public static string SEND_TO_DATABASE_EMAIL
Field Value
Type Description
System.String

Properties

Action

The action that should be triggered when the submit control triggers a form posting.

Declaration
public string Action { get; set; }
Property Value
Type Description
System.String

ActionSettings

A collection of name/values that are parsed from the value of the Action property.

Declaration
public NameValueCollection ActionSettings { get; }
Property Value
Type Description
System.Collections.Specialized.NameValueCollection
Remarks

The parsing is basically the same as the query string for a url.

ChannelOptions

The ChannelOptions that is used when calling XFormControl.SubmitForm.

Declaration
public ChannelOptions ChannelOptions { get; set; }
Property Value
Type Description
ChannelOptions

CustomContent

If custom content is specified the control will render an anchor tag with postback behaviour. The value of the CustomContent property will be rendered inside of the anchor tag.

Declaration
public string CustomContent { get; set; }
Property Value
Type Description
System.String
Remarks

For instance, the value could be an image: <img src='/images/submit.gif' alt='Submit' />

Method

Declaration
public string Method { get; set; }
Property Value
Type Description
System.String

Receiver

The email address that and email is sent to.

Declaration
public string Receiver { get; }
Property Value
Type Description
System.String

RegexMatchString

A string representation of a regular expression that is used when converting html to xform controls.

Declaration
public static string RegexMatchString { get; }
Property Value
Type Description
System.String

Sender

The email address that is used as the sender of an email.

Declaration
public string Sender { get; }
Property Value
Type Description
System.String

Subject

A custom subject for an email message. If this is not set the subject defined on the form is used.

Declaration
public string Subject { get; }
Property Value
Type Description
System.String

Value

This property is not used for the submit control and will always return String.Empty.

Declaration
public override string Value { get; set; }
Property Value
Type Description
System.String
Overrides

Methods

GetPostBackOptions()

Declaration
protected virtual PostBackOptions GetPostBackOptions()
Returns
Type Description
System.Web.UI.PostBackOptions

LoadPostData(String, NameValueCollection)

Declaration
public override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type Name Description
System.String postDataKey
System.Collections.Specialized.NameValueCollection postCollection
Returns
Type Description
System.Boolean
Overrides

OnClick(EventArgs)

Declaration
protected virtual void OnClick(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

RaisePostBackEvent(String)

Declaration
public void RaisePostBackEvent(string eventArgument)
Parameters
Type Name Description
System.String eventArgument

RaisePostDataChangedEvent()

Declaration
public override void RaisePostDataChangedEvent()
Overrides

Render(HtmlTextWriter)

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderAttributes(HtmlTextWriter)

Declaration
protected override void RenderAttributes(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
Overrides

RenderButton(HtmlTextWriter)

Renders a normal html submit button.

Declaration
protected virtual void RenderButton(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderCustomSubmit(HtmlTextWriter)

Renders an anchor tag that works like an submit button containing custom content.

Declaration
protected virtual void RenderCustomSubmit(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderValue(HtmlTextWriter)

Declaration
public override void RenderValue(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
Overrides

ReplaceHTML(Match)

Used when converting html to XForm controls.

Declaration
public static string ReplaceHTML(Match match)
Parameters
Type Name Description
System.Text.RegularExpressions.Match match

A Match from an regular expression evaluation.

Returns
Type Description
System.String

A string representing an XForm control.

SubmitForm(Object, EventArgs)

Declaration
protected virtual void SubmitForm(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender
System.EventArgs e

Events

Click

An event that is triggered when a user click on the submit button.

Declaration
public event EventHandler Click
Event Type
Type Description
System.EventHandler

Implements

System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler

Extension Methods