namespace OuWei.CommonControl
{
public class AREA:Panel
{
protected override void OnLoad(EventArgs e)
{
//base.OnLoad(e);
TextBox text = new TextBox();
DropDownList dd=new DropDownList();
DropDownList dd2 = new DropDownList();
DropDownList dd3 = new DropDownList(); this.Controls.Add(dd);
this.Controls.Add(dd2);
this.Controls.Add(dd3);
this.Controls.Add(text);
dd.Items.Add("213213");
dd2.Items.Add("213213");
dd3.Items.Add("213213");
}
protected void dd_SelectedIndexChanged(object sender, EventArgs e)
{
MessageBox.ShowConfirm(this, "messs");
}
}
}
我先是建了一个类继承panel,然后加了三个dropdownlist 现在想知道这三个dropdownlist的事件如何写!先谢谢各位大侠帮忙了!本人新手
{
public class AREA:Panel
{
protected override void OnLoad(EventArgs e)
{
//base.OnLoad(e);
TextBox text = new TextBox();
DropDownList dd=new DropDownList();
DropDownList dd2 = new DropDownList();
DropDownList dd3 = new DropDownList(); this.Controls.Add(dd);
this.Controls.Add(dd2);
this.Controls.Add(dd3);
this.Controls.Add(text);
dd.Items.Add("213213");
dd2.Items.Add("213213");
dd3.Items.Add("213213");
}
protected void dd_SelectedIndexChanged(object sender, EventArgs e)
{
MessageBox.ShowConfirm(this, "messs");
}
}
}
我先是建了一个类继承panel,然后加了三个dropdownlist 现在想知道这三个dropdownlist的事件如何写!先谢谢各位大侠帮忙了!本人新手
当省变换时,在Changed事件中同步实现市的变化,区同理
http://www.cnblogs.com/insus/archive/2011/07/04/2097059.html