Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

"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'

Note: I think as a programmer not as a human, so use my answer at your will
Posted
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.
Note: I think as a programmer not as a human, so use my answer at your will

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...