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
;
}
}
}
查看全文
相关阅读:
Mac OS X系统下编译运行C代码
Android intent传递list或对象
Android中实现自定义的拍照应用
由闭包引起的对javascript代码可维护性的思考
让浏览器非阻塞加载javascript的几种方式
Javascript中正则表达式的全局匹配模式
解读JavaScript代码 var ie = !-[1,]
Javascript中闭包的作用域链
WPF代码注意事项,开发常见问题,知识总结
WPF绑定各种数据源之object数据源
原文地址:https://www.cnblogs.com/cnaspnet/p/669415.html
最新文章
解决VisualStudio2013无法查看数组内容的问题
在eclipse中执行sql的编码问题
MySQL编码问题集合
解决eclipse启动tomcat报错:Could not load the Tomcat server configuration at ServersTomcat v6.0 Server at localhost-config. The Servers project is closed.
jQuery新建HTML Element
解决Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.
解决在eclipse中配置Tomcat时,出现"Cannot create a server using the selected type"的错误
使用【单独】的一个<script>进行js文件的引用
std::string与output-operator"<<"的兼容问题
grads 新老版本目录对比
热门文章
grads 读取shp
arcgis flex aqi 3大util
flex datagrid 导出csv
【转】mac os x系统上Android开发环境的搭建
工厂模式三部曲之工厂方法模式
工厂模式三部曲之简单工厂模式
mac os x常用快捷键及用法
[LeetCode]Sum of Two Integers
比较好的刷题网站推荐
Android如何让真机显示debug log的调试信息
Copyright © 2011-2022 走看看