Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
ddlSalesPerson has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

What I have tried:

ddlSalesPerson has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
Posted
Updated 27-Aug-19 1:10am
Comments
OriginalGriff 27-Aug-19 3:47am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. Perhaps if you show us the relevant code fragment, and tell us which line the error is found on that might help?

Use the "Improve question" widget to edit your question and provide better information.

1 solution

You really need to improve your question, anything I can think of the cause of this issue would be

Drop Down List has no items
Drop Down List is bound but this particular value is missing
Possibly value returned could be null

If Drop Down control's Text property is assigned a value before datasource, this error may also occur.

Example:

DropDownList1.Text = "Value1";
DropDownList1.DataSource = yourDatasource;

So I would suggest to clarify your question and provide more details for a better and to the point answer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900