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:
When I remove this line I get no errors.
2. Microsoft JScript runtime error: 'AjaxData' is undefined occurs in the javascript file
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:
to the web.config file
Mike55.
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:
Code:
Ajax.Utility.RegisterTypeForAjax(GetType(AjaxData))
2. Microsoft JScript runtime error: 'AjaxData' is undefined occurs in the javascript file
Code:
function LoadType(identifier)
{
var type = identifier.options [identifier.selectedIndex].value;
AjaxData.GetSubType(type, LoadType_CallBack);
}
I have the Ajax.dll in the bin folder and I haved added the line:
Code:
<httpHandlers>
<!-- Register the ajax handler -->
<add verb="POST,GET" path="ajaxwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
</httpHandlers>
Mike55.