asp.net中TextBox在GridView里面,GridView在ListView里面,怎么在后台里面打识别到TextBox代码呢?
asp.net中TextBox在GridView里面,GridView在ListView里面,怎么在后台里面打识别到TextBox代码呢?
------解决方案--------------------
GridView gv = (GridView)ListView.FindControl("GridView");
TextBox tb = (TextBox)gv.FindControl("TextBox1");