did any one know how to validate time in textbox using two checkboxes .i mean 12hr in one checkbox and 24hr in another checkbox.if user clicks 12hr checkbox it should validate only 12 hr same for 24 hr..how to do this any idea help me.am posting what i have done.
Code:
/>
ControlToValidate="txtTime" ValidationExpression="^(1[0-2]|0[1-9]):[0-5][0-9]\040(AM|am|PM|pm)$">
ControlToValidate="txtTime" ValidationExpression="^([01]?[0-9]|2[0-3]):[0-5][0-9]$">
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 9, 2015, 9:44 PM EDT
SreenishRank #7,298 · 244 reputationPosted Aug 9, 2015, 9:47 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 9, 2015, 10:07 PM EDT
SreenishRank #7,298 · 244 reputationPosted Aug 9, 2015, 10:12 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 9, 2015, 10:17 PM EDT
SreenishRank #7,298 · 244 reputationPosted Aug 9, 2015, 10:19 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts