Jun 15, 2009, 3:16 PM
Custom Search + JSON + DataTable + Error
Hello!
I am using code like in this example - https://examples1.ext.net/#/Form/Com...Custom_Search/
...
// 3 columns.
// example: 'Jane' 'manager' '123gkj2hg312uy'
DataTable dt = new DataTable();
dt = AdUsers.GetUsers();
if (dt != null)
// _ERROR_
context.Response.Write(string.Format("{{totalUsers:{1},'users':{0}}}", Coolite.Ext.Web.JSON.Serialize(dt), dt.Rows.Count));
...
I get error "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"
Can I return DataTable?