use operators for criteria - DataForm.NET Samples

This example illustrates how to use Between operator and set a default value for the second field of Between operator.

Pick a Theme:

Employee ID ~ 
First NameLast Name
Hire Date  ~  
    

Click Search button and see the criteria Values:


  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Products by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to Criteria tab.
  3. The operator of each field can be changed here or modified in the Criteria Field Designer. When an operator is set to Between, two criteria fields  are created representing from and to. These two fields work together, but are also independent to each other.The attributes of each field can be configured.
  4. In this example, the second field of HireDate is set to the date of today.
  5. To get the value of a criteria in code, use field name as key for CriteriaValues property. The name of the second textbox of Between operator is the field name plus "_EndValue" , for instance, "HireDate_EndValue".
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.