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
;
}
}
}
查看全文
相关阅读:
DirectX 龙书 混合 理解
火影 雏田
草帽第十人为什么是甚平
Agile Development(敏捷开发)
用例图
Cache Object Script 学习之二(转载)
Error link 1107:invalid or corrupt file:can't read at 0x2A8
孙沈清动词按活用形的分类
Mac 如何访问linux
在Mac OS X中配置Apache + PHP + MySQL
原文地址:https://www.cnblogs.com/cnaspnet/p/669415.html
最新文章
好用的mysql数据字典工具
定制安装linux操作系统
关于DEL网卡驱动的一次故障
MYSQL5.5和MYSQL5.1性能对比
让linux系统支持xfs文件系统
怎样查看哪些程序占用了swap空间
MYSQL 5.1自动安装脚本
落户新家
Spring基本功能依赖注入
工厂模式
热门文章
单例模式
POST和GET请求的区别
String,StringBuffer和StringBuilder的区别
WinInet 错误代码
雏田与小樱
MFC 树控件单击缩放子项
lua 字符串分割
DX 简单阴影
DirectX 龙书 画镜子 1
CEGUI的String与C++的std::string互相转换
Copyright © 2011-2022 走看看