This is a migrated thread and some comments may be shown as answers.

[Solved] Re Binding Grid from Client Side

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 22 May 2009, 12:27 AM

 

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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 May 2009, 04:13 AM
Hello Michael,

You can refer to the following help document to find ou thow to eliminate the error that you have been receiving:
Known problems related to ASP.NET AJAX interoperability

Thanks
Princy.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or