如何在radiobuttonlist中禁用一个值 [英] How to disable one value in radiobuttonlist

查看:91
本文介绍了如何在radiobuttonlist中禁用一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <   asp:RadioButtonList     ID   =  rblPaymentMethod    runat   =  server    style   =  font-family:Verdana; font-size:10pt   宽度  =  166px >  
< asp:ListItem = 1 > 现金< / asp:ListItem >
< asp:ListItem = 2 > 检查< / asp:ListItem >
< / asp:RadioButtonList < span class =code-keyword>>

我使用的是radiobuttonlist,但如何在编程方法中禁用一个值,如果标签值大于1000,我使用一个标签时间拳值禁用如何创建,请任意一个gi我的想法。





我尝试过的事情:



如何在radiobuttonlist中禁用一个值

解决方案

检查出来:禁用radiobutton listitem | ASP.NET论坛 [ ^ ]

<asp:RadioButtonList ID="rblPaymentMethod" runat="server" style="font-family: Verdana; font-size: 10pt" Width="166px">
<asp:ListItem Value="1">Cash </asp:ListItem>
<asp:ListItem Value="2">check</asp:ListItem>
</asp:RadioButtonList>

I am using radiobuttonlist, but how to disable one value in programming method, I am using one label if label value greater then 1000 that time fist value disable how to create, please any one give me idea.



What I have tried:

how to disable one value in radiobuttonlist

解决方案

Check this out: disable radiobutton listitem | The ASP.NET Forums[^]


这篇关于如何在radiobuttonlist中禁用一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆