Jul 28, 2017 05:39 AM|jplane|LINK
I have a Text field bound to a DetailsView that has a null value. I would like a message alert or popup instead of an exception. I have tried a If/Else statement with Eval in this text field, but the message is still generated.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
<asp:Label ID="Label29" runat="server" Text='<%# DetailsView1.Rows(1).Cells(1).Text %>' /> </asp:Label>
There is nothing here, but I'd rather a message popup and allow the user to know why this message is coming up.