LinkButton小用法:

1.在使用时可以通过CommandName和CommandArgument属性联合起来绑定并传值,如:
CommandName="record"
CommandArgument='<%# Eval("MemberID") %>'
2.当有删除操作时会弹出确认对话框这是可这样写:
OnClientClick="javascript:if(confirm('确定删除吗?')) return true; else return false;"
3.给属性绑定值
Visible='<%# CheckState(Convert.ToInt32(Eval("FState")))%>'
然后在后台写一个CheckState()方法.
或者写成Visible='<%# Convert.ToInt32(Eval("FState"))==1? true:false;%>'

相关文章:

  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
猜你喜欢
  • 2022-02-11
  • 2021-11-11
  • 2021-09-18
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-02-03
相关资源
相似解决方案