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
;
}
}
}
查看全文
相关阅读:
转:套接字
转:Socket原理与编程基础
转:rabbitmq——用户管理
转:rabbitMQ 安装与管理
转:window与linux互相拷贝文件
转:Xming + PuTTY 在Windows下远程Linux主机使用图形界面的程序
Rabbitmq集群
VS2010 win7 64位安装后新建项目生成时错误:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
java连接sqlserver2008
Java单体应用
原文地址:https://www.cnblogs.com/cnaspnet/p/669415.html
最新文章
使用python进行汉语分词-乾颐堂
Python 序列与映射的解包操作-乾颐堂
注意for循环中变量的作用域-乾颐堂
用 python 实现各种排序算法-乾颐堂
Python 解析配置模块之ConfigParser详解-乾颐堂
朴素贝叶斯算法的python实现-乾颐堂
python中执行命令的3种方法小结-乾颐堂
Python代码规范利器Flake8
python时间处理详解-乾颐堂
深入理解yield-乾颐堂
热门文章
[操作系统]打开VMware提示VMware Workstation 与 Device/Credential Guard 不兼容。
git 的初始化使用
原码 补码、反码的关系
git 的使用
go协程 && channel
vim 使用技巧 set paste 解决粘贴乱序问题
go笔记
redis-cli命令行远程连接redis服务
runnerw.exe: CreateProcess failed with error 216 (no message available) 解决
转:函数signal()
Copyright © 2011-2022 走看看