If our return type is DataSet then we will get this error message
A circular reference was detected while serializing an object of
type "System.goblaization.CultureInfo"
setting response format to XML
[System.Web.Script.Services.ScriptMethod(ResponseFormat=
System.Web.Script.Services.ResponseFormat.Xml)]
public DataSet Get()
{
DataSet ds = new DataSet();
return ds;
}
No comments:
Post a Comment