FormItemBlock can cause a StackOverflowException

Just spent the last hour trying to figure out why my page throws an StackOverflow. It was really difficult trying to figure out what was causing it, the stack trace was always in System.Web.

It was because (while tweaking values and making room for more FormItems), there was a FormItem whose cellSpan was larger than FormItemBlock’s numberOfColumns parameter.

So ideally it would throw an exception drawing attention to the mistake?

1 Like


post needs to be at least 20 characters.