摘要: asp.net GridView自定义模板列中的项目,如果设置readonly="ture" 或者设置Enabled="false"的话在后台是无法取到前台给赋于的值,解决办法:在RowDataBound事件中加入想设置的项目即可:((TextBox)e.Row.FindControl("txtAmt")).Attributes["readonly"] = "true"; 阅读全文
posted @ 2010-04-28 16:07 李传涛 阅读(731) 评论(0) 推荐(0) 编辑