Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NETC#4.0
(Convert.ToBoolean(objUserMgmtData.ActiveYN))?radYes.Checked = true : radNo.Checked = true;
 
or
 
(Convert.ToBoolean(objUserMgmtData.ActiveYN))?radYes.Checked : radNo.Checked;
 
message:Only assignment, call, increment, decrement and new object expressions can be used as a statement.
 
objUserMgmtData.ActiveYN is bool type
Posted 9-Nov-12 17:30pm
PBGuy1.8K
Edited 9-Nov-12 23:21pm
Nelek42.3K
v2
Comments
Soumen_Banerjee at 10-Nov-12 0:19am
   
in conditional statement assignment part must be in left hand side part so you have to write like this radYes.Checked =.....

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

(Convert.ToBoolean(objUserMgmtData.ActiveYN)?radYes.Checked : radNo.Checked);
 
try to do this
  Permalink  
Comments
aspnet_regiis -i at 10-Nov-12 4:47am
   
correct +5
Dain Ucak at 10-Nov-12 4:49am
   
thank you
shabari7 at 11-Nov-12 23:01pm
   
NO use... Still the same message... oops

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,628
1 Tadit Dash 375
2 Manas Bhardwaj 319
3 Sergey Alexandrovich Kryukov 275
4 OriginalGriff 243
0 Sergey Alexandrovich Kryukov 9,530
1 OriginalGriff 5,711
2 Peter Leow 4,320
3 Maciej Los 3,540
4 Abhinav S 3,373


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 10 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid