<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Binding A String to a Checkbox</title><link>http://weblogs.asp.net/adamschroder/archive/2008/04/02/binding-a-string-to-a-checkbox.aspx</link><description>In a recent project I was attempting to list data from a configuration settings database table. The values were boolean but stored as a 'Y' or a 'N' so that only one set of SQL's was needed to be written, as the product supports both Oracle and SQL Server</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Binding A String to a Checkbox</title><link>http://weblogs.asp.net/adamschroder/archive/2008/04/02/binding-a-string-to-a-checkbox.aspx#6059825</link><pubDate>Wed, 02 Apr 2008 06:23:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6059825</guid><dc:creator>Joe Chung</dc:creator><author>Joe Chung</author><description>&lt;p&gt;The ASP.NET CheckBox has a Checked property which you can set via data binding to true or false. &amp;nbsp;If you need to use the value attribute of the input[type=&amp;quot;checkbox&amp;quot;] control, you can use a server-side input tag, i.e., &amp;lt;input type=&amp;quot;checkbox&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;, if you want to data bind to that.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6059825" width="1" height="1"&gt;</description></item></channel></rss>