使用c#比较asp.net中的gridview行和转发器行 [英] Compare gridview row and repeater row in asp.net using c#

查看:90
本文介绍了使用c#比较asp.net中的gridview行和转发器行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

中继器控制如下



coursename coursedate课程代码

RAFF 30 mar 14 PSTF

RPST 30 mar 14 PSTF





在Gridview中如下



coursename coursedate coursecode

RAFF 30 mar 14 PSTF

RPST 30 mar 14 PSTF

MFA 29 3月14日AMC





i希望比较Gridview第3行课程代码(AMC)和Repeater控制第2行课程代码(PSTF)。



if两个课程代码匹配我想显示消息课程代码匹配。

如果两个课程代码不匹配我想显示消息课程代码不匹配。



为什么我在asp.net中使用c#。

请帮助我如何使用c#在asp.net中编写代码。





问候,

Jegan B.

解决方案

已经在使用c#比较asp.net中的gridview和转发器控件项目[ ^ ]。

Repeater control as follows

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


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 do in asp.net using c#.
please help me how can i write the code in asp.net using c#.


Regards,
Jegan B.

解决方案

Already answered at Compare the gridview and repeater control items in asp.net using c#[^].


这篇关于使用c#比较asp.net中的gridview行和转发器行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆