cant implicitly convert type int to bool
Hi Friends,
i would like your help as i am getting some problems with the following code.
i have marked the lines in red color.
please help me out.
private void btnauthor_Click(object sender, System.EventArgs e)
{
int i;
CheckBox cb;
DataGridItem dgitem;
for(i=0;dgemp.Items.Count-1;i++)
{
dgitem= dgemp.Items[i];
cb=(CheckBox)(dgitem.FindControl("chk1"));
}
if(cb ="" && cb.Checked )
{
ordList += dgitem.Cells[1].Text + "";
}
lblexec.Text= KillEnding(ordList.Trim());
}
private string KillEnding(string sItem)
{
return sItem.Substring(0,sItem.Length-1);
}
|