| Checkbox | EmpID | PayID |
123 | 1 | |
1234 | 1 | |
1234 | 2 |
I would like to store the corresponding PayID values as per the EmpID exists. If I select both from the check boxes available I would like to check which payid belongs to which EmpID can any one give me an idea to implement this please.

VulpesRank #55 · 29.2K reputationPosted Sep 6, 2011, 9:06 AM EDT
Also, using CodeDom to add C# 3.0 features to C# 2.0 is not a good idea IMO.
However, here's an alternative formulation which should work in VS 2005 and might be more suitable for what you're doing in any case:
VulpesRank #55 · 29.2K reputationPosted Sep 6, 2011, 7:41 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 6, 2011, 7:46 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 6, 2011, 7:58 AM EDT
d.Add(EmpID,new List
But i am getting error as
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 6, 2011, 8:01 AM EDT
I am using visual studio 2005 will there be problems further if i use this
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 7, 2011, 8:05 AM EDT
But only 2 values are storing . I will get EmpID count as 2 and allPayPeriodIDs values 9 in this code can u help me on that
VulpesRank #55 · 29.2K reputationPosted Sep 7, 2011, 8:56 AM EDT
then as expected the output is:
Are you sure that the original arrays are of the same length and that the keys and values correspond with each other (i.e. have the same indices) in both arrays?
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 7, 2011, 9:16 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts