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.
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.
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
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!) )
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
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
In the form of the scripts, you can add the system itself defined functions, set can be called directly!
- The Dataloadingbehavior property of the DataGrid must be set to AutoLoad, set to Auto-load, or the data will not be automatically displayed
- Server scripts can return any value, but be aware of the difference between him and data Sources
- 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.
- 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.
- 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
- Process for adding an operation:
the specific process for adding content is:
Click the LinkButton button to trigger the LinkButton Onolick event
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"))
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.
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