This method is used to load the proper user control. It is also responsible for finding the control and firing off the interface all controls loaded by Forum_UserSettings via Ajax use.

Namespace: DotNetNuke.Modules.Forum
Assembly: DotNetNuke.Modules.Forum (in DotNetNuke.Modules.Forum.dll) Version: 5.0.0.30439

Syntax

C#
protected PortalModuleBase LoadForumControl(
	string control
)
Visual Basic
Protected Function LoadForumControl ( _
	control As String _
) As PortalModuleBase
Visual C++
protected:
PortalModuleBase^ LoadForumControl(
	String^ control
)

Parameters

control
Type: System..::..String
The ascx control we are attempting to load.

Return Value

An instance of the ascx control we loaded in the module.

Remarks

We need viewstate to load the same subcontrol at postback.

See Also