当前位置: 代码迷 >> ASP.NET >> 获取GridView里的DropDownList的选出值
  详细解决方案

获取GridView里的DropDownList的选出值

热度:5353   发布时间:2013-02-25 00:00:00.0
获取GridView里的DropDownList的选定值
选择DropDownList的选定值后会自动初始化,怎么办?
还有 DropDownList1_SelectedIndexChanged具体怎么写

------解决方案--------------------------------------------------------
探讨
protected void ddlDe_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList ddl = (DropDownList)sender; //得到当前的DropDownList
GridViewRow gvr = (GridViewRow)ddl.NamingContainer; //获取对D……

------解决方案--------------------------------------------------------
if(!IsPostBack)
  相关解决方案