Error generated during saving data through DHTMLX grid

When I save data of DHTMLX grid (via using DHTMLXProcessor’s SendData() method) it generates an error alert indiating

Error Type:Load XML

Description : incorrect XML.



And the insertion operation is quite unpreditctable. Some rows are inserted in database while some got skipped from insertion.

Error description via “dhtmlxdataprocessor_debug.js” is

“Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data”

and content of SaveData.aspx page after insertinion are:



<?xml version="1.0" encoding="UTF-8"?> Save

It seems that your custom server side code is working incorrectly. After outputting correct xml response it outputs html code of the page , which is not necessary and can produce parsing errors on client side ( most probably request processing is not stopped after xml generation )