Job Training Daily

Source: Internet
Author: User

    1. The onclick of the control and other events, it is important to have the system automatically generated before the method to change the name, or after the addition of a name may cause the method can not be run. The best habit is to give it a name after you've just built the control.

    2. Customize an optimization method: RefreshChildren () to optimize the TabControl, call the method in Tabcontral, and then select which TabPage to refresh only the corresponding TabPage, the other tabpage does not make a refresh action.

    3. To use the TabPage control, be sure to switch on the first page page, and then save it. Because the TabPage control is loaded earlier, if it is not placed on the first page, a hint of missing objects may appear

    4. When you write scripts in the Server script, be sure to check the system's own two fields in the query, or you will get an error in the delete operation. The field could not be found. (Except for custom delete operations!) )

    5. In the root Table designer of the DataGrid, you can set different types for the fields that are displayed, you can set the drop-down boxes, and so on. Specific requirements can be set in detail

    6. In the form of the Resourse attribute can be checked linkglobalresources, so that you can replace the system defined in some English, you can also customize the replacement content, the resources ID write to replace the content, resources value written for replacement of the content

    7. In the form of the scripts, you can add the system itself defined functions, set can be called directly!

    8. The Dataloadingbehavior property of the DataGrid must be set to AutoLoad, set to Auto-load, or the data will not be automatically displayed
    9. Server scripts can return any value, but be aware of the difference between him and data Sources
    10. Data Sources can only return a single table, even if the query results with a condition have only one record, and a table is returned.
    11. After modifying the TabControl, remember to call the Refresh method to refresh the top person information table, otherwise the information will be out of sync.
    12. If the overridden method and the system comes with the same name, it is necessary to change it in time, using different methods of name, so as to maximize the prevention of mistakes
    13. Process for adding an operation:

      the specific process for adding content is:

      1. Click the LinkButton button to trigger the LinkButton Onolick event

      2. Write the Onolick event, define a variable Reg, accept the value returned by the called form, and do the following: form. ShowModalDialog (LIMS). Getformsource ("app name. Called form name"))

      3. Then go to execute the calling form, first determine whether the necessary input box on the form is empty, and call Dialogs.messagebox (form) if it is empty. resourse["Popup window Content! "]," pop-up Window name "," button content "," Popup type (Warning,information,error) "), do not continue for null, and then get the values entered in the form separately, stored in different variables, The values in the variable are then passed back to the main form as an array. The specific syntax is: form.returnvalue = [parameter 1, Parameter 2, parameter 3, parameter 4], and then call the Form.close () method to close the form.

      4. Determines whether the returned reg array is empty, executes a return if it is empty, and returns if not empty, then calls the Insert code: LIMS. CallServer ("app name. Server Scripts, parameter list (array form [reg[0],reg[1],reg[2],reg[3])), and then refresh the display control DataGrid.

14. Use the TabPage control, be sure to switch on the first page page, and then save. Because the TabPage control is loaded earlier, if it is not placed on the first page, a hint of missing objects may appear

When writing scripts in Server script, be sure to check the two fields in the system, otherwise the error will be in the delete operation. The field could not be found. (Except for custom delete operations!) )

16. In the Resourse attribute of the form, you can tick linkglobalresources, so that you can replace some of the English defined in the system, you can also customize the replacement content, the resources ID write to replace the content, resources Value writes the content to be replaced

Job Training Daily

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.