wings9697
Member
Hi. My project is using ListBoxes to set values on my case entry form. But after I run the form, close it, and go back in, I get this
and when I check my code, I see this ....
I take it out, run it again, and it puts it back in.... What gives....?
Can anybody tell me what is going on? Thanks in advance.....
VB.NET:
'DropDownList3' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: 'DropDownList3' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
and when I check my code, I see this ....
VB.NET:
<td style="width: 100px">
<asp:Label ID="Label25" runat="server" Font-Bold="True" Text="Photos?"></asp:Label><br />
<asp:DropDownList ID="DropDownList3" runat="server"
SelectedValue='<%# Bind("case_photo", "{0}") %>'>
<asp:ListItem [U][B]Selected="True"[/B][/U] Value="1">Yes</asp:ListItem>
<asp:ListItem Value="0">No</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 112px">
I take it out, run it again, and it puts it back in.... What gives....?
Can anybody tell me what is going on? Thanks in advance.....