Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Unassigned: DynamicPopulateExtender fails if optional PopulateTriggerControlID attribute is not included [27680]

$
0
0
Create an ASPX page and add a DynamicPopulate control to the page, Hook it all up, with the exception of leaving out the optional PopulateTriggerControlID attribute.

Try to view the page, Rendering fails on server in AjaxControlToolkitJQueryScriptBuilder.BuildDataOptionsAttribute(Control targetControl) line 96.

The PopulateTriggerControlID is added to the Properties list in the mentioned procedure as part of line 23

```
var properties = ctlType.GetProperties(BindingFlags.Public
| BindingFlags.Instance
| BindingFlags.DeclaredOnly).ToList();
```

then in the for each, the procedure tries to locate the value for each of the properties included in the collection and if not included of course it fails as it tries to retrieve the missing attribute.

![Image](http://pbs.twimg.com/media/BleSJmPCIAAS57g.png:medium)

Viewing all articles
Browse latest Browse all 4356

Trending Articles