kaisersoze Posted January 8, 2004 Posted January 8, 2004 "forum.SelectedValue.ToString()" or "forum.SelectedItem.value.ToString()" is generating error when trying to display the user from the database. one can suppress the error by error handling but anyone have an answer or is it only me who is getting this error. To generate this error follw this: 1. Select a value and save to the database from a drop downlist. 2. Try to show the use what he has selected from the database (should work fine) 3. then change manually the value in the database (this value should not be in the dropdownlist) error is generated : specified argument was out of the range of valid values. paramet name: 'blah blah' Quote Note: I think as a programmer not as a human, so use my answer at your will
Moderators Robby Posted January 8, 2004 Moderators Posted January 8, 2004 Is the dropdown bound ? If so what does your code look like. Quote Visit...Bassic Software
kaisersoze Posted January 9, 2004 Author Posted January 9, 2004 yes. the drodown has all the values, text from the database. but when you try to select a listing from the database and if the listing is not in the dropdown you get the error. I will paste the code also for review. Quote Note: I think as a programmer not as a human, so use my answer at your will
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.