TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sameer Khan
1.5k
272
39.1k
How to check dates
Jan 28 2016 5:27 AM
How to check date should not be greater than today date using compare field validator i:e Client side validation in asp .net
I have used this
<asp:comparevalidator ID="Comparevalidator2" runat="server" errormessage="The date must be greater than today"
controltovalidate="txtRegDate" type="Date" Operator="GreaterThan"
valuetocompare='<%= DateTime.Now.ToShortDateString() %>' />
Getting Error
The value '<%= DateTime.Now.ToShortDateString() %>' of the ValueToCompare property of 'Comparevalidator2' cannot be converted to type 'Date'.
Reply
Answers (
4
)
How to pass values from one datagrid to another form datagri
how to use increment or decrement button with text box in a