委托事件 新手求助 !急急急急急急急急急急急急急急急急急急急!!!!!!!!!!!! 将每个DropDownList中嵌入该方发的调用,并且传入相应的id号来区分是哪个DropDownList传来的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 static private int i=0;protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { i=1; result1 = DropDownList1.SelectedValue; GetInspectionItem(); ClearFormControl(); } protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { i=2; result2 = DropDownList2.SelectedValue; GetInspectionItem(); ClearFormControl(); } protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) { i=3; result3 = DropDownList3.SelectedValue; GetInspectionItem(); ClearFormControl(); } private int getWhich_Select() { if(i==1)....... if(i==2)....... if(i==3)....... }...自己写了 我不是这个意思 ,我是让这三个DropDownList1_SelectedIndexChanged事件写在一个方法里,并且知道是选择哪一个DropDownList 关于工厂模式,一般什么情况下使用? 路过的都进来帮忙看看谢谢啊 格式话时间字符串 MSSQL的一个问题 FileUpload Asp.Net自动化报表解决方案 datagrid的问题 合并Word的问题 我想请教下在线的高手,vs2005的ping功能,能否向不同的网关发送数据? 为了节约资金,从JSP改为asp.net IIS没有死,但是网页访问过一段时间就会死掉 将类的数据写入共享内存的问题
static private int i=0;
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
i=1;
result1 = DropDownList1.SelectedValue;
GetInspectionItem();
ClearFormControl();
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
i=2;
result2 = DropDownList2.SelectedValue;
GetInspectionItem();
ClearFormControl();
}
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
i=3;
result3 = DropDownList3.SelectedValue;
GetInspectionItem();
ClearFormControl();
}
private int getWhich_Select()
{
if(i==1).......
if(i==2).......
if(i==3).......
}
...自己写了