dataList 里的droplistdown事件
protected void Select_SelectedIndexChanged(object sender, EventArgs e)
{
string PId = "";
string strSelectValue="";
foreach (DataListItem myItem in this.List.Items)
{
PId =List.DataKeys[myItem.ItemIndex].ToString();
DropDownList Sel = (DropDownList)myItem.FindControl("Select");
strSelectValue = Sel.SelectedValue;
}
PId strSelectValue 得到的结果都不是我选择的值,请问如何解决
}
protected void Select_SelectedIndexChanged(object sender, EventArgs e)
{
string PId = "";
string strSelectValue="";
foreach (DataListItem myItem in this.List.Items)
{
PId =List.DataKeys[myItem.ItemIndex].ToString();
DropDownList Sel = (DropDownList)myItem.FindControl("Select");
strSelectValue = Sel.SelectedValue;
}
PId strSelectValue 得到的结果都不是我选择的值,请问如何解决
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货