Hi,
I'm using javascript to dynamically bind data to data source on text change of a rad text box to display search results. Every thing works find except for when I get to the data bind it throws the following error: "Microsoft JScript runtime error: Unable to get value of the property 'indexOf': object is null or undefined" Through debug mode I can see that I am getting the results I want from the database but binding is giving me a problem that I unable to solve so far. Here is the code:
Thanks,
Ron
I'm using javascript to dynamically bind data to data source on text change of a rad text box to display search results. Every thing works find except for when I get to the data bind it throws the following error: "Microsoft JScript runtime error: Unable to get value of the property 'indexOf': object is null or undefined" Through debug mode I can see that I am getting the results I want from the database but binding is giving me a problem that I unable to solve so far. Here is the code:
function
SearchValueChanged(sender, args) {
InvoiceWebService.SearchInvoice(3, 36, updateGrid, OnFail);
return
false
;
}
function
OnFail(result) {
alert(result);
}
function
updateGrid(result) {
var
tableView = $find(
"<%= grdInvoices1.ClientID %>"
).get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
Ron