<form id="Form1" method="post" runat="server">
<asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 144px; POSITION: absolute; TOP: 81px" runat="server" Width="129px"></asp:DropDownList>
<asp:ListBox id="ListBox1" style="Z-INDEX: 102; LEFT: 141px; POSITION: absolute; TOP: 127px" runat="server" Width="129px"></asp:ListBox>
</form>private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
kk();
}
// 在此处放置用户代码以初始化页面
}
public void kk()
{
string[] a=new string[]{"","aaaaa","bbbbb","ccccc","ddddd","eeeee","fffff"};
this.DropDownList1.DataSource=a;
this.DropDownList1.DataBind();
} #region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{    
this.DropDownList1.SelectedIndexChanged += new System.EventHandler(this.DropDownList1_SelectedIndexChanged);
this.Load += new System.EventHandler(this.Page_Load); }
#endregion public void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
string[] b=new string[]{"......","aaaa","bbbb","cccc","dddd"};
this.ListBox1.DataSource=b;
this.ListBox1.DataBind();
}to: webdiyer(陕北吴旗娃)
请指教;)