SimpleFormWebPart Class

The SimpleFormWebPart class implements a Web Part that displays HTML forms.

Microsoft.SharePoint.WebPartPages.WebPart

   System.Web.UI.IPostBackEventHandler

      Microsoft.SharePoint.WebPartPages.Communication.IRowProvider

         Microsoft.SharePoint.WebControls.IDesignTimeHtmlProvider

Public Constructors

The following table shows the constructors of the SimpleFormWebPart class and a brief description of each.

Name Description
SimpleFormWebPart Initializes a new instance of the SimpleFormWebPart class.

Events

The following table shows the events of the SimpleFormWebPart class and a brief description of each.

Name Description
RowProviderInit Occurs when a connection is established with another Web Part that implements the IRowProvider interface.
RowReady Occurs when the selected row changes, such as when a row is updated or selected.

Public Methods

The following table shows the public methods of the SimpleFormWebPart class and a brief description of each.

Name Description
CanRunAt Overrides the SharePoint.WebPartPages.WebPart.CanRunAt method.
EnsureInterfaces Overrides the SharePoint.WebPartPages.WebPart.EnsureInterfaces method.
GetDesignTimeHtml Gets the HTML that is used to represent the control at design time.
GetInitEventArgs(String) Overrides theMicrosoft.SharePoint.WebPartPages.GetInitEventArgs method. It specifies an interface whose initialization events should be fired.
GetToolParts Determines which tool parts are displayed in the tool pane of the web-based Web Part design user interface, and the order in which they are displayed.
LoadResource(String) Overrides the Microsoft.SharePoint.WebPartPages.WebPart.LoadResource method. Returns a string that describes the localized Name, Category, and Description property values of the specified resource.
PartCommunicationConnect(String, Microsoft.SharePoint.WebPartPages.WebPart, String, Microsoft.SharePoint.WebPartPages.Communication.ConnectionRunAt) Notifies other Web Parts that this Web Part has a connected interface, where that interface should run, and what that interface is connected to.
PartCommunicationInit Runs event handlers for server-side Init events.
PartCommunicationMain Runs event handlers for server-side events for this Web Part.
RaisePostBackEvent(String) Is called by ASP.NET when when this Web Part does a postback to itself.
ShouldSerializeContentNode Indicates whether the Content property should be persisted.

Protected Methods

The following table shows the protected methods of the SimpleFormWebPart class and a brief description of each.

Name Description
RenderWebPart(System.Web.UI.HtmlTextWriter) Overrides the Microsoft.SharePoint.WebPartPages.WebPart.RenderWebPartmethod to implement rendering for this Web Part.

Public Properties

The following table shows the public properties of the SimpleFormWebPart class, the data type of each property, and a brief description of each.

Name Data Type Description
Content String Gets and sets embedded HTML or XML that provides content for this Web Part.

Thread Safety

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

Requirements

Namespace: Microsoft.SharePoint.WebPartPages

Platforms: Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security