gridview 中TemplateField内的控件的控制问题 你为什么把它置为False?? 而且LB是什么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Can you find you linkbutton as you way? if not, you can use the below code have a try.TextBox txtCalendarDate = (TextBox)grCalendar.Rows[e.RowIndex].FindControl("newCalendarDateEdit"); ]<asp:TemplateField HeaderText="Environment" > <ItemTemplate> <asp:DropDownList ID="envi_ddl" runat="server" > <asp:ListItem >aaa</asp:ListItem> <asp:ListItem >bbb</asp:ListItem> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> 如果我用这个,可以获取到这个dropdownlisg的值,就用上述的方法,但是也是控制不了enable属性 别在页面上设置false,这样你后台设置了true之后加载页面的时候他又给你改成false了。在create,或者rowdatebound 的时候设置就o了。 rowdatabound不行,绑定后点edit仍然是enable=false 已解决 edit事件发生在bind事件之前 回车键的确定功能 营销型网站 全文关键词筛选的问题 关于DataItem数据项的两个很白痴的问题(希望给出确切答案) SQL Server中的money类型在.NET中对应的是什么类型? 菜鸟求助:关于DataGrid中的“按钮列”,请高手帮帮忙…… 求教web.config中文件上传信息的设置和调用问题 如何去除记忆? 看不清 换一张.>. 关于"引用"的问题 如何把一个string转换成UCS2编码? 为什么我换了服务器空间,数据库连接就出错,郁闷!!请高手帮忙解决一下,谢谢! 问个小问题!
Can you find you linkbutton as you way? if not, you can use the below code have a try.TextBox txtCalendarDate = (TextBox)grCalendar.Rows[e.RowIndex].FindControl("newCalendarDateEdit");
<ItemTemplate>
<asp:DropDownList ID="envi_ddl" runat="server" >
<asp:ListItem >aaa</asp:ListItem>
<asp:ListItem >bbb</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
如果我用这个,可以获取到这个dropdownlisg的值,就用上述的方法,但是也是控制不了enable属性
在create,或者rowdatebound 的时候设置就o了。