I have a dropdown list that has multiple values that i am getting from my stored procedure. But there can be a case that my dropdown remains empty. so in that case i want the user to manually input the value. Can it be possible? If yes how? thanks.

有帮助吗?

解决方案

Use

if (ddl.Items.Count == 0) { txt.Enabled = true; } 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top