Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个下拉列表,其中包含我从存储过程中获取的多个值。但在某些情况下,我的下拉菜单仍然为空。所以在那种情况下,我希望用户手动输入值。有可能吗?如果是怎么办?谢谢。
利用
if (ddl.Items.Count == 0) { txt.Enabled = true; }