|
DataSet.ReadXml doesn't work! -- GuoZhiLin --
Perhaps you don't regist the AjaxPro |
|
-- sirkhanh --
Thanks GuoZhi Lin ,but when I use: <server side> ds2.ReadXml("main/lib/xml/product_brandname.xml"); <client side> alert(ds2) it returns a DataSet perharp AjaxPro.2 don't know this method : Server.MapPath, so it returns null . |
|
-- sirkhanh --
This method return null : < Server side> public DataSet GetBrand() { DataSet ds2 = new DataSet(); ds2.ReadXml(Server.MapPath("~/main/lib/xml/product_brandname.xml")); return ds2; } <Client side> var res = main_block_AjaxNet.GetBrand() var dsProduct = res.value alert(dsProduct); It returns "null" Please help me! |
|
-- sirkhanh --
Thanks GuoZhi Lin ,but when I use: <server side> ds2.ReadXml("main/lib/xml/product_brandname.xml"); <client side> alert(ds2) it returns a DataSet perharp AjaxPro.2 don't know this method : Server.MapPath, so it returns null . |
|
-- INeedADip --
I believe you have do something like: HttpContext.Current.Server.MapPath(".."); You are probably getting an error returned in the response.error |