Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebFormsResultWebNavigator.FindNavigableParent Method

Finds the next IWebNavigator up the control hierarchy, starting at the specified control.

[Visual Basic]
Protected Shared Sub FindNavigableParent( _
   ByVal control As Control, _
   ByVal includeSelf As Boolean, _
   ByVal restrictToValidNavigatorsOnly As Boolean _
)
[C#]
protected static NavigableControlInfo FindNavigableParent(
   Control control,
   bool includeSelf,
   bool restrictToValidNavigatorsOnly
);

Parameters

control
the control to start the search with.
includeSelf
include checking the control itself or start search with its parent.
restrictToValidNavigatorsOnly
requires IWebNavigables to hold a valid WebNavigator instance.

Return Value

If found, the next IWebNavigator or IWebNavigable. null otherwise

Remarks

This method checks both, for controls implementing IWebNavigator or IWebNavigable. In addition when MasterPages are used, it interprets the control hierarchy as control->page->masterpage. (GetLogicalParent).

See Also

WebFormsResultWebNavigator Class | Spring.Web.Support Namespace