Page..::.LoadControl Method
This page is specific to:.NET Framework Version:3.54.0
.NET Framework Class Library
Page..::.LoadControl Method

Loads a Control.

Overload List

  NameDescription
Public methodLoadControl(String)Loads a Control object from a file based on a specified virtual path. (Inherited from TemplateControl.)
Public methodLoadControl(Type, array<Object>[]()[])Loads a Control object based on a specified type and constructor parameters. (Inherited from TemplateControl.)
Top
Remarks

When you load a control into a container control, the container raises all of the added control's events until it has caught up to the current event. However, the added control does not catch up with postback data processing. For an added control to participate in postback data processing, including validation, the control must be added in the Init event rather than in the Load event.

See Also

Reference

Other Resources

© 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