Castle.MonoRail.Framework.Views.Aspx.EventListConverter.FindControlInContainer C# (CSharp) Method

FindControlInContainer() private method

private FindControlInContainer ( ITypeDescriptorContext context, ControllerBinding parent ) : Control
context ITypeDescriptorContext
parent ControllerBinding
return System.Web.UI.Control
		private Control FindControlInContainer(ITypeDescriptorContext context,
											   ControllerBinding parent)
		{
			IControllerBinder binder = (IControllerBinder)context.GetService(typeof(IControllerBinder));

			if (binder != null)
			{
				return binder.FindControlWithID(parent.ControlID);
			}

			return null;
		}
	}