c# - Less than or Equal Date should not allow to enter -


Using C # and so on; MySQL

When I get the date of input in the text box, then it should be compared with the date from the table, if it is equal, then it should give an error message, allowing it more than just the date

For example

  Table 1 ID Date 001 2010-08-05 002 2010-08-02 .... When I enter the date in the text box - 2010-08-04, it should be compared with the date in Table 1, if it is from Table 1 to Max (Date) Handlebar or less, then throw him an error message, otherwise it should be allowed to insert a date.  

New to mysql & amp; C #, how it works in C # & amp; MySQL

Some code support is required.

I will run a query for the first time and bring the maximum date to the application on my front ... Then depending on whether the application is a web application or a Windows application, I will use this value in comparison to the values ​​of Valuerator (ASP.NET) or textbox_washing to compare values ​​...

< P> If you are not familiar with how to compare valuer or validity occurrence Use, let me know, I can post some links here.

If you want to keep this restriction in your table, you may need to use the barriers / triggers ... I do not know much about MySQL to help you here.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -