Sorry, I should have posted more of my code, trouble is there's quite a
lot of it.  I have an ajax method with the same name as the javascript
function

[AjaxPro.AjaxMethod]
        public DataSet VehicleMakeSelectedIndexChanged(int
vehicleMakeId)
        {
            DataSet ds = new DataSet();
            DataTable dt = new DataTable("VehicleModels");
            if (vehicleMakeId > 0)
            {
                _dal = new VehicleDetailsDAL(_channelId);
                dt = _dal.GetVehicleModelsByMakeId(vehicleMakeId);
                _dal = null;
            }
            ds.Tables.Add(dt);
            return ds;
        }

The javascript function "vehiclemakeindexchanged" is called onchange
event of my dropdownlist, the ajax method
"VehicleMakeSelectedIndexChanged" is called from the VehicleDetails
class which should then change the next select list dynamically.

Thanks for the info on the scriptBlock, I will change my code
accordingly!


--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to