Class Submit
Summary description for Submit.
Inheritance
System.Object
Submit
Implements
System.Web.UI.IPostBackDataHandler
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
Assembly: EPiServer.XForms.dll
Version: 10.10.4
public class Submit : XFormControlBase, IPostBackDataHandler, INamingContainer, IPostBackEventHandler
Constructors
Declaration
Fields
Declaration
public static string SEND_MAIL
Field Value
| Type |
Description |
| System.String |
|
Declaration
public static string SEND_TO_CUSTOM_URL
Field Value
| Type |
Description |
| System.String |
|
Declaration
public static string SEND_TO_DATABASE
Field Value
| Type |
Description |
| System.String |
|
Declaration
public static string SEND_TO_DATABASE_EMAIL
Field Value
| Type |
Description |
| System.String |
|
Properties
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 |
|
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 |
|
The ChannelOptions that is used when calling XFormControl.SubmitForm.
Declaration
public ChannelOptions ChannelOptions { get; set; }
Property Value
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 |
|
Declaration
public string Method { get; set; }
Property Value
| Type |
Description |
| System.String |
|
The email address that and email is sent to.
Declaration
public string Receiver { get; }
Property Value
| Type |
Description |
| System.String |
|
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 |
|
The email address that is used as the sender of an email.
Declaration
public string Sender { get; }
Property Value
| Type |
Description |
| System.String |
|
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 |
|
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
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.
|
Declaration
protected virtual void SubmitForm(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Events
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