If I use ClientIDMode="Predictable" and ClientIDRowSuffix = "PrimaryKeyFieldName" then in a ListView then any web controls in the InsertItemTemplate with an ID will cause the error:
Index was out of range. Must be non-negative and less then the size of the collection.
When I examine the debug info I see what happened I can see this error during the render:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.ArrayList.get_Item(Int32 index) +12658933
i.e. it looks like a runtime error is generated since ASP.NET cannot get a PredictableClientIDSuffix for an insert control.
Is this a bug in the framework?
View Complete Post