首页 新闻 会员 周边

asp.net Dropdownlist 控件值

0
悬赏园豆:5 [已关闭问题] 关闭于 2012-12-18 13:09

aspx
<asp:CommandField ShowSelectButton="True" ItemStyle-Wrap="false" />
.cs
protected void Gridview1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
int i = e.NewSelectedIndex;
dropdownlist1.Text = GV.Rows[i].Cells[1].Text;
}

单击选择后,将 GV.Rows[i].Cells[1].Text 赋值给dropdownlist1 ,在次选定dropdownlist1的其它值  时,一值保持 GV.R[/b]ows[i].Cells[1].Text的值 ,无法在dropdownlist1选定其它值

Bay.Li的主页 Bay.Li | 菜鸟二级 | 园豆:201
提问于:2012-12-18 12:22
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册