Click here to Skip to main content
15,887,338 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.NET
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">


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


Error Code:

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

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