Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.GetLogicalParent Method

Returns the 'logical' parent of the specified control. Technically when dealing with masterpages and control hierarchy, the order goes controls->masterpage->page. But one often wants the more logical order controls->page->masterpage.

[Visual Basic]
Public Shared Sub GetLogicalParent( _
   ByVal control As Control _
public static Control GetLogicalParent(
   Control control


the control, who's parent is to be determined.

Return Value

the logical parent or null if the top of the hierarchy is reached.


Exception Type Condition
ArgumentNullException if control is null

See Also

WebUtils Class | Spring.Util Namespace