Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
my code is
C#
if (dsPAPermission.Tables[0].Rows.Count > 0)
       {
           var i = 0;
           foreach (DataRow dr in dsPAPermission.Tables[0].Rows)
           {
               if (Convert.ToBoolean(dr["Assigned"]))
               {
                   i++;
               }
           }
           hdncountuser.Value = i.ToString();
       }



i want to chnage this code in linq
Posted

1 solution

 
Share this answer
 
v3
Comments
Karthik_Mahalingam 3-Dec-14 1:36am    
5
DamithSL 3-Dec-14 2:15am    
Thank you, Karthik

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900