PagePorter Class Library

FpControlConverter.ConvertControl Method 

Converts an attribute collection from the FrontPage webbot comment tag into information to insert a corresponding FpWebControl into a web form.

[Visual Basic]
Public Function ConvertControl( _
   ByVal attributes As NameValueCollection, _
   ByRef type As String, _
   ByRef output As String _
) As Integer
[C#]
public int ConvertControl(
   NameValueCollection attributes,
   out string type,
   out string output
);

Parameters

attributes
A NameValueCollection that contains the attribute / value pairs parsed from the webbot commment tag.
type
If the return code is zero (success), type represents the fully qualified type name of the FpWebControl that should be added to the ASP.NET page. If the return code is non-zero (unsuccessful), type is set to the attribute that caused the error or warning.
output
If the return code is zero (success), output represents the HTML to insert in the ASP.NET page to successfully render the ASP.NET control. If the return code is non-zero (unsuccessful), output is the error message that may be shown to the user.

Return Value

Zero if successful. Otherwise it is the error code number of the warning or error.

See Also

FpControlConverter Class | Parastream.Web.UI.Design Namespace