Error24Syntax error, '(' expected
Designations obj = new Designations();
obj.IsEditable=((chkEditable=checked)?true:false);
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Aug 30, 2013, 3:19 AM
try this
Designations obj = new Designations();
obj.IsEditable = ((chkEditable.Checked) ? true : false);
VulpesPosted Aug 30, 2013, 4:16 AM
obj.IsEditable = chkEditable.Checked;
or this, if it's some other variable:
obj.IsEditable= (chkEditable==checked);
Posted Aug 30, 2013, 3:16 AM
obj.IsEditable=((chkEditable==checked)?true:false);