protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            initialization();
    }
public void initialization()
    {
        DataAccess.Control dc = new DataAccess.Control();
        Response.Write(dc.sql_getDepartName(getId()));//获得部门名称        //问题在这
        ListItem li = (ListItem)this.DropDownList1.Items.FindByValue(dc.sql_getDepartName(getId()));
        if (li != null)
        {
            li.Selected = true;
        }
    }这个是页面代码
<asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" 
                        DataSourceID="SqlDataSource1" DataTextField="DepartName" 
                        DataValueField="DepartName">
                        <asp:ListItem>未选择</asp:ListItem>
                    </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:kkConnectionString %>" 
                        SelectCommand="SELECT [DepartName] FROM [DepartB]"></asp:SqlDataSource>现在的问题是这样的 FindByValue 查找不到,是NULL想问下, Page_Load 这个函数是不是运行在 数据源 之前?我试过直接设置droplist的值,用this.DropDownList1.SelectedValue="" 是可以的,但是后面在页面获取不到当前选中项了,永远都是初始选中项