Hi,
I'm having trouble with my callback method. The method receives a
DataSet and uses the table within it to populate a drop down list,
however I'm getting a "Tables is null or not an object" javascript
error.
This is the callback method:
function vehiclemakeindexchanged_callback(response)
{
var modelDDL = document.getElementById('vmDDL');
removeAllDDLOptions(modelDDL, false);
modelDDL.options[0] = new Option('Please select', '0', false, false);
var models = response.value;
for (var i = 0; i < models.Tables[0].Rows.length; i++)
{
modelDDL.options[modelDDL.options.length] = new
Option(models.Tables[0].Rows[i]["ModelDescription"],
models.Tables[0].Rows[i]["ModelDescription"], false, false);
}
}
I've used the following code to register the dataset type in the OnInit
event of my control:
AjaxPro.Utility.RegisterTypeForAjax(typeof(DataSet));
Many thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---