Author: bryanfok | Posted on: 6/7/2010 11:33:06 AM | Views : 231

Hi all


Below has a Json format return from my webmethod
{"d":[{"__type":"WebPortal.Customer.OtherInformation+CompanyDTO","CompanyName":"DisneyLand","ID":30}]}

but i thought I should return this:
{"d":[{"CompanyName":"DisneyLand","ID":30}]}So what is happening? And how should i solve this? 
My guess is that the "__type":"WebPortal.Customer.OtherInformation+CompanyDTO" is referring to my namespace and object type, but why i need it in my javascript? why my web method is included this?
my webmethod is like this:
namespace WebPortal.Customer { public partial class OtherInformation : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } [ ...

Go to the complete details ...