NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Page.LoadControl

Obtains an instance of a control from a declarative control file.

[Visual Basic]
Public Function LoadControl( _
   ByVal virtualPath As String _
) As Page
[C#]
public Page LoadControl(
   string virtualPath
);
[C++]
public: Page* LoadControl(
   String* virtualPath
);
[JScript]
public function LoadControl(
   virtualPath : String
) : Page;

Parameters

virtualPath
The virtual path to an .aspx file or a pagelet control.

Return Value

Returns an instance of the specified control.

See Also

Page Class | Page Members | System.Web.UI Namespace