for (int i=1;i<=10;i++)
{
DropDownList yourList=(DropDownList)FindControl("DropDownList"+i.ToString());
yourList.SelectedValue="";
}
Image yourImage=(Image)FindControl("pic_" + i.ToString()); 中DropDownList为控件的类,yourList是自己取的名。i是DropDownList1---DropDownList10的名
{
DropDownList yourList=(DropDownList)FindControl("DropDownList"+i.ToString());
yourList.SelectedValue="";
}
Image yourImage=(Image)FindControl("pic_" + i.ToString()); 中DropDownList为控件的类,yourList是自己取的名。i是DropDownList1---DropDownList10的名
1181

被折叠的 条评论
为什么被折叠?



