Microsoft.SharePoint.WebCon ...


InputFormSection Class (Microsoft.SharePoint.WebControls)
Represents the InputFormSection.

Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
Public MustInherit Class InputFormSection
    Inherits UserControl
Visual Basic (Usage)
Dim instance As InputFormSection
C#
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
public abstract class InputFormSection : UserControl
Inheritance Hierarchy

System.Object
   System.Web.UI.Control
     System.Web.UI.TemplateControl
       System.Web.UI.UserControl
        Microsoft.SharePoint.WebControls.InputFormSection
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Tags :


Community Content

Robin Meuré
Example of an InputFormSection

The most added value when using an InputFormSection is that it looks like a out-of-the-box SharePoint input form (with the two column basd layout) To add this to your custom application page use the following snippet:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
 
<wssuc:InputFormSection Title="WebApplication selection" id="fmWebApplication"
            Description="Choose a Web Application" runat="server">  
            <template_inputformcontrols>            
              <wssuc:InputFormControl runat="server">
                <Template_Control>
           <SharePoint:WebApplicationSelector ID="webApplicationSelector" runat="server" />
                </Template_Control>
              </wssuc:InputFormControl> 
 </template_inputformcontrols> 
</wssuc:InputFormSection>

This example will show the user the choice of selecting a WebApplication.

For more information check out these posts :

  • http://blog.rafelo.com/2008/10/using-inputformsection-and.html
  • http://graegert.com/?p=505

Tags :

Page view tracker