关于.net项目错误 [英] about .net project Error

查看:71
本文介绍了关于.net项目错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:-包含一个SelectedValue,该值无效,因为它在项目列表中不存在.
参数名称:值

Plz Plz帮我快速...

Error:- has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

Plz Plz Help me Fast......

推荐答案

根据您给我们提供的内容,我认为您正在尝试查看下拉列表或类似内容在选择值之前获取SelectedValue.当首次加载应用程序或页面时运行用于获取SelectedValue的代码时,这很常见.您应该进行检查以确保在尝试读取值之前已选择了某些内容.
Based upon what little you gave us, I would assume you are trying to look at a dropdown or something like that to get the SelectedValue before the value is selected. This is common when the code for getting the SelectedValue is run when the application or page first loads. You should do a check to be sure something is selected before trying to read the value.


我前些时候在这里回答了类似的内容:
I replied something similar some time back here: http://www.codeproject.com/Messages/4267101/Re-cmbGender-has-a-SelectedValue-which-is-invalid-.aspx[^]


这篇关于关于.net项目错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆