设置了你的页面viewstatus属性为true了吗?

解决方案 »

  1.   

    if you did not set any selection, the browser will select the first item in the list. How are you setting it? if you have<form runat=server id="myForm">
           <asp:DropDownList id="DropDown" runat="server"/>
    ...
    </form>you can either use
    DropDown.SelectedIndex = 1;or if you don't want to select anything, you can doString scriptString = "<script language=JavaScript>";
           scriptString += "document.myForm.DropDown.selectedIndex = -1;<";
           scriptString += "/script>";            if(!this.IsStartupScriptRegistered("Startup"))
                RegisterStartupScript("Startup", scriptString);
      

  2.   

    把绑顶的DDL的部分写在下面的函数中:
    if(!IsPostBack)
    {}