how to convert a string to boolean if I have two different fields (szValue and szDefault Value) in one checkbox??
<asp:templatefield HeaderText="Value"> <itemtemplate> <asp:CheckBox ID="ckbValue" runat="server" CssClass="pkchkbox" ></asp:CheckBox> </itemtemplate> </asp:templatefield>
DataTable dt = new DataTable(); *.aspx.cs foreach (DataRow row in m_dt.Rows) { if (row[1].ToString() == "Y") { row[1] = true; //row[1] = true; } else if (row[1].ToString() == "N") row[1] = false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)