Click here to Skip to main content
15,946,012 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Having a little trouble with dropdownlists and SelectedIndexChanged in activating oldposts().

Here is my code:

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
    End Sub

Error Code:

Min Dropdown: Index was outside the bounds of the array.

This happens when your index is greater than the highest index of an array, in this case, the value array of the dropdownlist. Check your oldposts() if there is something similar to what was described.
Share this answer
This[^] may help.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900