zoukankan
html css js c++ java
GridView模版列中根据数据动态添加RadioButtonList项
aspx
<
ItemTemplate
>
<
asp:HiddenField
ID
="hditem"
runat
="server"
Value
='<%#
Eval("item") %
>
' />
<
asp:RadioButtonList
ID
="rblidea"
runat
="server"
RepeatDirection
="Horizontal"
RepeatLayout
="Flow"
>
<
asp:ListItem
Value
="1"
>
同意
</
asp:ListItem
>
<
asp:ListItem
Value
="0"
>
不同意
</
asp:ListItem
>
</
asp:RadioButtonList
>
</
ItemTemplate
>
cs:
protected
void
GridView1_RowDataBound(
object
sender, GridViewRowEventArgs e)
{
int
strid
=
e.Row.RowIndex;
RadioButtonList rbliea
=
(RadioButtonList)e.Row.FindControl(
"
rblidea
"
);
Button btnSubVise
=
(Button)e.Row.FindControl(
"
btnSubVise
"
);
HtmlInputButton hReSubVise
=
(HtmlInputButton)e.Row.FindControl(
"
ReSubVise
"
);
if
(rbliea
!=
null
)
{
if
(((HiddenField)e.Row.FindControl(
"
hditem
"
)).Value
==
"
3
"
)
{
//rbliea.Items.Insert(
2
,
"
需客户核准
"
);
rbliea.Items.Insert(2, new ListItem("需客户核准", "2"));
btnSubVise.Visible
=
false
;
hReSubVise.Visible
=
false
;
}
}
}
查看全文
相关阅读:
Redis
Linux 软件安装
Linux系统的目录和启动过程,Linux命令,权限控制
虚拟机,Linux,VMware三种网络连接模式区别
Spring Boot
shiro和spring和springmvc的集成
shiro
Mybatis的逆向工程,MySQL8的数据库,8.0.11驱动的逆向工程的坑的解决方法
jdk分析工具:jps和jstack
如何使用jconsole(英文)
原文地址:https://www.cnblogs.com/cnaspnet/p/669415.html
最新文章
nginx proxy https
puppet
最新sublimetext3080注册
运维人员必须熟悉的运维工具汇总
/var/spool/postfix/maildrop小文件太多造成inode索引使用完解决
关于inodes占用100%的问题及解决方法
jquery 触发a链接点击事件
前端学习资料汇总(转)
nginx反向代理ajax,解决跨域问题
运行hadoop自带的计算圆周率异常
热门文章
命令行模式直接下载jar包到本地库
搭建nexus私服,无法下载相关jar包,报错Repository proxy-mode is BLOCKED_AUTO
linux下rename用法--批量重命名 转
springmvc和dubbo整合时,不配置spring listener报错找不到/WEB-INF/config/applicationContext.xml
CentOS下MySQL忘记root密码解决方法【转载】
idea使用之maven中央仓库索引更新
idea使用之maven本地索引更新
web.xml 中的listener、 filter、servlet 加载顺序及其详解
Lucene
Redis的集群
Copyright © 2011-2022 走看看