also your sql code allows sql injection. you should change to parameters.
can not vaildate date in asp.net
mush
181
Reputation points
I'm trying to validate date where if the date in the database is equal or greater than the current date it shows some message otherwise it shows another message.
I tried this but it always skips the first message even though there is entry in the database where the date is greater than the current date:
(for some reason the system here wouldn't allow me to post my code so I put this screenshot instead. )
Developer technologies | ASP.NET | Other
Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Answer accepted by question author
-
Bruce (SqlWork.com) 81,976 Reputation points Volunteer Moderator
2022-03-23T15:28:59.177+00:00