ASP.NET 设置DropDownList的当前选项

1、通过显示字符Text
DropDownList.Items.FindByText("你的值").Selected=true;

如果在设置之前,进行过设置,应用如下格式:

DropDownList.ClearSelection();

DropDownList.Items.FindByText("你的值").Selected=true;

2、通过值Value

DropDownList.Items.FindByValue("你的值").Selected=true;

原文地址:https://www.cnblogs.com/DrHao/p/5045476.html