ASP.NET 将列表数据从代码隐藏发送到 aspx 页面时出错

ASP.NET Error when sending a list data from code-behind to aspx page

我在 Page_Load 中得到 WhosebugException,该网站永远加载空白页面并出现此错误。:

我该如何解决这个问题?

你 return places 属性 来自 places 属性,溢出你的堆栈。将您的 属性 更改为:

protected List<Place> Places { get; set; }

在Page_Load中:

Places = new List<Place> { ... };