首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

获取GridView里的DropDownList的选出值

2012-08-10 
获取GridView里的DropDownList的选定值选择DropDownList的选定值后会自动初始化,怎么办?还有 DropDownList

获取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)

热点排行