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")...
I have a listview. In my listview I have a dropdownbox which I want to fill in my codebehind page. Only the thing is, I don't know how to access this webcontrol. The following doesn't work:
DropDownList ddl = (DropDownList)lvUserOverview.Controls[0];
I know the index is 0 because the dropdownlist is the only control on the listview (a...
Hi there,
I have 3 dropdown boxes (combo box) in asp.net environment.
They are all optional, so if a user has selected anything, i am updating database, if nothing has been selected at all, i am still updating database with null values.
I tried to do this:
int? CountryId = Convert.ToInt32(ddCountries.SelectedItem.Value);
I was hop...