[英]ASP.NET Error when sending a list data from code-behind to aspx page
You return places
property from places
property, overflowing your stack. 您从places
属性返回places
属性,从而places
堆栈溢出。 Change your property to: 将您的属性更改为:
protected List<Place> Places { get; set; }
And in Page_Load: 在Page_Load中:
Places = new List<Place> { ... };
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.