I want to add options to a dropdownbox on my aspx page from the c# code behind during load. I don't know how to get a reference to the control. I have some c# code that is triggered when the user changes the dropdownbox. In that I get a reference to the dropdown with:
DropDownBox ddb = (DropDownBox)info.Toolbar.ToolbarItems.Find("ID");
But that won't work if I try it in
protected void Page_PreRender(object sender, EventArgs e)
{
on my aspx.cs
What am I missing? Thanks.