Share via


GetCustomBuilder(String) Method

The GetCustomBuilder method of the WebPart class provides the ability to associate a dynamic builder with a custom property of a Web Part.

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 class 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 BrowserBuilderType.Dynamic. The GetCustomBuilder method you implement in your WebPart class 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 (GAC). Assemblies deployed in the \inetpub\wwwroot\bin folder will not be allowed to use .aspx or .asmx files as class resources.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security