Repeater control as follows
coursename coursedate coursecode
RAFF 30 mar 14 PSTF
RPST 30 mar 14 PSTF
coursename coursedate coursecode
RAFF 30 mar 14 PSTF
RPST 30 mar 14 PSTF
In Gridview as follows
coursename coursedate coursecode
RAFF 30 mar 14 PSTF
RPST 30 mar 14 PSTF
MFA 29 mar 14 AMC
RPST 30 mar 14 PSTF
MFA 29 mar 14 AMC
i want to compare the Gridview 3rd row coursecode(AMC) and Repeater control 2nd row coursecode(PSTF).
if both course code matches i want to show the message coursecode matches.
if both course code not matches i want to show the message coursecode not matches.
for that how can i write the code in asp.net using c#.
Regards,
Narasiman P.
Dhanunjay JajimogglaPosted May 31, 2014, 6:19 AM
Do like this.
step 1. Loop for Repeater.
step 2. Inside the Loop, again Loop for GridView Rows.
step 3. Inside the second loop, fetch the Column from Repeater and GridView with the help of Loop counters.
step 4 . Write your Logic now
Regards,
Dhanunjay.