mike55 Posted June 21, 2006 Posted June 21, 2006 Hi all I have two drop down lists on my page, when the user selects an item in the first list the second list should load related data from a database table. I am trying to use AJAX to prevent post-backs, but I am running into a number of problems: 1. Syntax error - it seems that this error is related to the command: Ajax.Utility.RegisterTypeForAjax(GetType(AjaxData)) When I remove this line I get no errors. 2. Microsoft JScript runtime error: 'AjaxData' is undefined occurs in the javascript file function LoadType(identifier) { var type = identifier.options [identifier.selectedIndex].value; AjaxData.GetSubType(type, LoadType_CallBack); } I cannot under stand why the code will not work as I have the exact same code in a sample project and it works perfectly. I have the Ajax.dll in the bin folder and I haved added the line: <httpHandlers> <!-- Register the ajax handler --> <add verb="POST,GET" path="ajaxwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /> </httpHandlers> to the web.config file Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.