Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 982731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:44:36+00:00 2026-05-16T04:44:36+00:00

Using C# & Mysql When i get the input date in the textbox it

  • 0

Using C# & Mysql

When i get the input date in the textbox it should compare with date from table, if it is equal it should throw error message, it should allow only the greater than date

For Example

Table1

ID Date

001 2010-08-05
002 2010-08-02
....

When i enter the date in the textbox like - 2010-08-04, it should compare with Date in the table1, if it is equal or less than max(date) from table1 then it should throw a error message, otherwise it should allow to insert a date.

Am new to mysql & c#, How to do this in c# & Mysql.

Need some code help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:44:36+00:00Added an answer on May 16, 2026 at 4:44 am

    I would first run a Query and fetch the max date to my front end application… Then depending on whether the application is a web application or windows application, I will use this value in Compare Validator (ASP.NET) or Textbox_Validating event to compare the values…

    In case you are not familiar as to how to use Compare Validator or the Validating event, let me know, I can post some links here.

    In case you want to put this restriction in your Table itself, you may need to use constraints / triggers… I dont know MySql much to help you here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fetching the current date & time using NOW() in mysql. I want
am making function to count rows using WHERE, but i get a mysql error
I have been tasked to develop an interactive website using java & mysql: using
I believe I am using the correct queryString params for jdbc connection jdbc:mysql://localhost:3306/databasename?useUnicode=true&characterEncoding=utf8&noAccessToProcedureBodies=true My
I am new to use session management & I am using struts with MySQL
I am using the below code to search a mysql database but cannot get
Im using Ajax to get a value from the Drop down box and display
I am using PHP to get fields from my database I am using the
I got a question regarding my MySQL-database and would like to get input on
I have been working an application using PHP & MySql on Codeigniter framework. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.