Dropdown - System.ArgumentOutOfRange Exception
Hi,
I have a dropdown which binds data from the code behind, using the following code:
DrpDiscussions.DataSource = dt;
DrpDiscussions.DataTextField = "Discussion_Name";
DrpDiscussions.DataValueField = "Discussion_Id";
--> DrpDiscussions.DataBind();
However when i try run the program it shows a "System.ArgumentOutOfRangeException: Selection out of range" error.
Any ideas?
Thanks
|