public ControlDescription FindControlDescription(string type, string name) { var controlDescription = _markupStorage?.TryFind(type, name); if (controlDescription == null) { throw new ArgumentException( $"Control with alias=\"{type}\" and caption=\"{name}\" not found in ControlContext with name=\"{_contextId.Name}\""); } return(controlDescription); }
public ControlDescription FindControlDescription(string type, string name) { var controlDescription = _markupStorage?.TryFind(type, name) ?? _globalMarkupStorage.TryFind(type, name); if (controlDescription == null) { throw new ArgumentException( $"Control with alias=\"{type}\" and caption=\"{name}\" not found in PageContext with urlWildcard=\"{ScopeId.UrlWildCard}\""); } return(controlDescription); }