gridview中的css问题

zhangsiyan 2010-10-20 04:14:44
我在页面中的gridview用css定义了其中某列的textbox为只读,然后想在后台给它加条件当条件适合时将这列的只读属性去掉
求解,在线等
...全文
117 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
janjinyezi 2010-10-20
  • 打赏
  • 举报
回复
TextBox txtFind = e.row.FindControl("textbox的id") as TextBox;
txtFind.ReadOnly = false;
hongjiaoli 2010-10-20
  • 打赏
  • 举报
回复
txt.Attributes.Remove("ReadOnly");
hongjiaoli 2010-10-20
  • 打赏
  • 举报
回复
TextBox txt= (TextBox)FindControl("textBox");
Attributes.Remove("");
kongxh1218 2010-10-20
  • 打赏
  • 举报
回复
(e.row.FindControl("textbox的id") as TextBox).Attributes.Remove("readonly");
zhangsiyan 2010-10-20
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wuyq11 的回复:]
FindControl
Attributes.Remove("")
[/Quote]
大哥能给例举一下吗
我是这样弄的
e.row.cells[1].attributes.remove("");
没用
wuyq11 2010-10-20
  • 打赏
  • 举报
回复
FindControl
Attributes.Remove("")

13,346

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET技术前瞻
社区管理员
  • .NET技术前瞻社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧