I am attempting to rebind a grid (grdContributions) after the user has selected a row (client side selection) using the RowSelected event below:
function RowSelected(sender, eventArgs)
{
var tableView = $find("<%= grdContributionDetails.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
The following error is generated in the borwser when I compile the code:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
What I am trying to accomplish is to rebind a grid (grdContributionDetails) based upon the selection of a row in another grid (grdContribution). The above event is fired when the user selects a row in grdContribution.
What is causing this error and how can I resolve it?
Thank you,
Michael