I have a dropdown list that is created via a usercontrol inside an accordian
I initially create the dropdownlist like this
'Create DataBound DropDownList
If Not IsPostBack Then
DropDownList1.Items.Add("VIEW ALL")
For Each row As DataRow In dtPhotosGroup.Rows
DropDownList1.Items.Add(row.Item("SectionMonth"))
Next
DropDownList1.SelectedIndex = 1
End If
however, for some instances I want it to override that and have it set the index to "0"
I tried the following code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ctlPhotosAccordion As AjaxControlToolkit.Accordion = Galleryphotosmonth1.FindControl("AccordionPhotosMonth")
Dim ctlPhotosMonthDropdown As DropDownList = ctlPhotosAcco ...
Go to the complete details ...