在转发器控制中,验证日期不得与同一日期相同,并且一个课程的选定日期是另一个课程的下一个日期

编程入门 行业动态 更新时间:2024-10-26 18:28:38
本文介绍了在转发器控制中,验证日期不得与同一日期相同,并且一个课程的选定日期是另一个课程的下一个日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在转发器控制中,验证日期不得与同一日期相同,并且一门课程的选定日期是另一门课程的下一个日期。 中继器控制如下

in repeater control validate date must not same date and selected date of one course is the next date of another course. Repeater control as follows

RPST 29 Apr 14 RFPFF 29 Apr 14

string strdt = string.Empty; foreach(RepeaterItem ri in rptCart1.Items) { CheckBox cbox = (CheckBox)ri.FindControl("chk"); if (cbox.Checked = true) { HiddenField lbl = (HiddenField)ri.FindControl("hdDate"); strdt = strdt + lbl.Value + ","; } } string[] strRdate = strdt.Split(','); if (strRdate.Length > 2) { if (strRdate[0] == strRdate[1]) { Response.Redirect("ShiftConfirmation.aspx"); } else { Label23.Visible = true; Label23.Text = "RPST and RFPFF date must not be same. And RPST Date is the next date of RFPPF Date"; } }

i想要检查两次验证,RPST和RPSCRB日期必须不是同一日期。 和RPST日期是RFPFF日期的下一个日期。 来自我的上述代码我必须做出哪些更改。 我希望输出如下(RPST日期是RFPFF日期的下一个日期)

i want to check two validation the RPST and RPSCRB date must not be same date. And RPST Date is the next date of RFPFF Date. from my above code what changes i have to be made. I want the output to be as follows (RPST date is the next date of RFPFF Date)

RPST 29 APR 14 RFPFF 30 APR 14

上面的outptut 如何使用c#在asp中验证。 添加预标签。 [/编辑]

推荐答案

更多推荐

在转发器控制中,验证日期不得与同一日期相同,并且一个课程的选定日期是另一个课程的下一个日期

本文发布于:2023-05-26 10:05:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/353314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   转发器   课程

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!