标签: c# asp.net stack-overflow code-behind
我在StackOverflowException中获得Page_Load,该网站将永远加载一个空白页面并显示此错误。
StackOverflowException
Page_Load
我该如何解决这个问题?
答案 0 :(得分:1)
您从places属性返回places属性,溢出堆栈。将您的财产更改为:
places
protected List<Place> Places { get; set; }
在Page_Load:
Places = new List<Place> { ... };