Rainbow 2.0 Code Documentation

CustomForm Class

This is a server form that is able to post to a different page than than the one it is on. Simply set the Action property to whatever page you want. This control is available from the great MetaBuilders site http://www.metabuilders.com

For a list of all members of this type, see CustomForm Members.

System.Object
   Control
      HtmlControl
         HtmlContainerControl
            HtmlForm
               CustomForm

[Visual Basic]
<(DesignerBaseTypeName:="System.ComponentModel.Design.IDesigner", DesignerTypeName:="System.Web.UI.Design.HtmlIntrinsicControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _  (ToolboxItemType:=null), _  (Bindable:=True, Direction:=BindingDirection.OneWay), _  (Themeable:=False), _  (FilterString:="System.Web.UI", FilterType:=ToolboxItemFilterType.Require), _  (DesignerBaseTypeName:="System.ComponentModel.Design.IDesigner", DesignerTypeName:="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _  (Category:="Code"), _  (SerializerTypeName:="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName:="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), _  (Name:="ID")>
Public Class CustomForm     Inherits HtmlForm [C#]
[(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.HtmlIntrinsicControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(ToolboxItemType=null)]
[(Bindable=True, Direction=BindingDirection.OneWay)]
[(Themeable=False)]
[(FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Require)]
[(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(Category="Code")]
[(SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(Name="ID")]
public class CustomForm : HtmlForm [C++]
[(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.HtmlIntrinsicControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(ToolboxItemType=null)]
[(Bindable=True, Direction=BindingDirection.OneWay)]
[(Themeable=False)]
[(FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Require)]
[(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(Category="Code")]
[(SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[(Name="ID")]
public __gc class CustomForm : public HtmlForm [JScript] public 
   (DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.HtmlIntrinsicControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
   (ToolboxItemType=null)
   (Bindable=True, Direction=BindingDirection.OneWay)
   (Themeable=False)
   (FilterString="System.Web.UI", FilterType=ToolboxItemFilterType.Require)
   (DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="System.Web.UI.Design.ControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
   (Category="Code")
   (SerializerTypeName="Microsoft.VisualStudio.Web.WebForms.ControlCodeDomSerializer, Microsoft.VisualStudio.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
   (Name="ID")
class CustomForm extends HtmlForm

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

The following is an example page which posts a server form to google's search engine.

<%@ Register TagPrefix="rbc" Namespace="Rainbow.Framework.Web.UI.WebControls" Assembly="Rainbow" %>
<html><body>
    <rbc:CustomForm runat="server" Method="Get" Action="http://www.google.com/search">
        <asp:TextBox id="q" runat="server"></asp:TextBox>
        <asp:Button runat="server" Text="Google Search" />
    </rbc:CustomForm>
</body></html>

Requirements

Namespace: Rainbow.Framework.Web.UI.WebControls

Assembly: Rainbow.Framework.Core (in Rainbow.Framework.Core.dll)

See Also

CustomForm Members | Rainbow.Framework.Web.UI.WebControls Namespace