从数据库中读出DropDownList的选中值
dropdownlist.aspx
<asp:DropDownList ID="DropDownList1" runat="server">
 <asp:ListItem>语文</asp:ListItem>
 <asp:ListItem>体育</asp:ListItem>
 <asp:ListItem>数学</asp:ListItem>
</asp:DropDownList>

dropdownlist.cs
string str = "体育";//这一项可以从数据库中读出
for (int j = 0; j < this.DropDownList1.Items.Count; j++)
{
 if (str == this.DropDownList1.Items[j].Text.ToString())
 {
  this.DropDownList1.Items[j].Selected = true;
 }
}