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)
Comments: I was able to work around this issue by just adding an asp:button and pointing the PopulateTriggerControlID to the ID. I then just hid the button in a div with display: none. I also still made the call to the javascript function on page load so that it was still triggered as desired.
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)
Comments: I was able to work around this issue by just adding an asp:button and pointing the PopulateTriggerControlID to the ID. I then just hid the button in a div with display: none. I also still made the call to the javascript function on page load so that it was still triggered as desired.