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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SreenishPosted Aug 10, 2015, 2:19 AM
Manas MohapatraPosted Aug 10, 2015, 2:17 AM
SreenishPosted Aug 10, 2015, 2:12 AM
Manas MohapatraPosted Aug 10, 2015, 2:07 AM
SreenishPosted Aug 10, 2015, 1:47 AM
Manas MohapatraPosted Aug 10, 2015, 1:44 AM