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);
<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);
if(!IsPostBack)
{}