复选框的问题是ASP.NET [英] checkbox problem is ASP.NET

查看:76
本文介绍了复选框的问题是ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想更新复选框中的表值.如果有值,则检查= true,否则检查= false.
如何在ASPX页面本身中执行此操作.

Hi,
I want to update the table values in check box. if value is there then check=true else checked=false.
how to do that in ASPX page itself.

<%If Rdr("LED") = "Y" Then%>
                    <td class="Content" align="center">
                    <asp:CheckBox ID="ChkLED1" runat="server" Checked="true"/><%Response.Write(Rdr("LED"))%>
                    
                    </td>
                   <%End if %>



请help



pls. help

推荐答案

您为什么在标记中执行此操作.使用后台代码设置复选框文本属性
Why are you doing this in the markup. Use the code-behind to set the checkbox text property


这篇关于复选框的问题是ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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