0
Answer

Dropdown

Lubo Mazur

Lubo Mazur

18y
1.8k
1

Hello, i have dropdown ,name=ValidityInList , it makes with value of datetime; in one moment i change properties SelectedValue. Before it  ValidityInList.SelectedValue = "1.11.2005 0:00:00" . In other steps

 validitiesFrom.Contains(value)....value of other dropdown =  {6/1/2005}
 ValidityInList.SelectedValue = Convert.ToString(value);

I get an error
 
 
Specified argument was out of the range of valid values. Parameter name: 1.6.2005 0:00:00
 
Ladiace informácie:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: 1.6.2005 0:00:00 at System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) at WebGui.Controls.ValidityIn.set_SelectedValue(DateTime value) in
etc

Can you help,How can I solve it.Many thanks. Lubo