Really stupid design I believe but this is the code
protected void Page_Load(object sender, EventArgs e)
{
bookingTypeList.Items.Insert(0, new ListItem("Project", "p"));
bookingTypeList.Items.Insert(1, new ListItem("Training", "t"));
....
As you can see I set the list item from c# code. Now I have two calendars on the asp.net page. Each time I select a date on it, I notice the drop down list values/items multiple..So for example:
1- Training
2- Project
then with selection:
1- Training
2- Project
1- Training
2- Project
I think it is something to do with page load placement…what can I do?
1 Answer