DropDownList SelectedValue问题 [英] DropDownList SelectedValue Problem
本文介绍了DropDownList SelectedValue问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何检查值是否已出现在我的下拉列表中?
我在做
if(DropDownList1.SelectedValue == true)
{
Response.Redirect("WebForm5?val =" + DropDownList1.SelectedValue +");
}
请更正我的代码...:)
How we check that values has come in my dropdownlist?
i am doing
if(DropDownList1.SelectedValue == true)
{
Response.Redirect("WebForm5?val=" + DropDownList1.SelectedValue + "");
}
please correct my code...:)
推荐答案
if(DropDownList1.SelectedValue!= null)
我认为这对您有帮助
i think this will help you
这篇关于DropDownList SelectedValue问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文