WebPart.GetCustomBuilder Method (Microsoft.SharePoint.WebPartPages)
WebPart.GetCustomBuilder Method (Microsoft.SharePoint.WebPartPages)
Provides the ability to associate a dynamic builder with a custom property of a Web Part.

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

'Usage

Dim propertyName As String
Dim returnValue As String

returnValue = Me.GetCustomBuilder(propertyName)

'Declaration

Protected Overridable Function GetCustomBuilder ( _
    propertyName As String _
) As String

Parameters

propertyName

The name of the property to associate with a dynamic builder.

Return Value

A string that contains the URL for launching your custom builder.
Remarks

Implement the GetCustomBuilder method in your WebPart when you want to associate a dynamic builder with a custom property. The GetCustomBuilder method is called only when a property has its HtmlDesignerAttribute set to a BrowserBuilderType value of Dynamic. The GetCustomBuilder method you implement in your WebPart should accept the property name as a string and generate a URL that will launch the dynamic builder for that property. The URL itself should point to an ASPX or HTML file that can be launched inside a ShowModalDialog method to complete the builder functionality.

If the assembly for your builder is deployed as a class resource, you must deploy the assembly in the global assembly cache. Assemblies deployed in the \inetpub\wwwroot\bin folder will not be allowed to use ASPX or ASMX files as class resources.

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View