开发者

Why doesn't SelectedValue Show Up In Intellisense For DropDownLists?

开发者 https://www.devze.com 2023-01-24 05:22 出处:网络
It doesn\'t show up in aspx pages, but it does in codebehind. Are we not supposed to be using it? Is it not there to make the intellisense list more manageable?

It doesn't show up in aspx pages, but it does in codebehind.

Are we not supposed to be using it? Is it not there to make the intellisense list more manageable? Did they scre开发者_StackOverflow中文版w up?

If I recall it wasn't there in previous versions as well... Anyone know the story?


Because the declaration for the property includes [BrowsableAttribute(false)]. This was added starting in .NET 3.5.

Members marked with the BrowsableAttribute constructor's browsable parameter set to false are not appropriate for design-time editing and therefore are not displayed in a visual designer.

My guess is since it is also settable in the item, it causes confusion.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号