Tersus to paint. Developing software display components-upload display components

Source: Internet
Author: User

Tersus Non-code mobile phone Computer Management software development, which upload class display components include: Table unit (form), file upload frame element (filename Field)

Table cell (Form): is a submission of information components, similar to an input box nested container, you can right-click Add 4 kinds of labeled input box elements, arbitrarily add multiple, and then define the display style of each component is to quickly complete the design of the submission interface. A client-side behavioral processing element with a <on submit> name can be designed with more logic for information validation and submission processing.

1, all components can be style design, with "Html.style" or The Style class "Html.styleclass" attribute to define, after the definition can view and adjust the property values in the browser to optimize the design:

2. <on submit> is a logic processing element that is dedicated to a form such as <on click>, where the logic will run when the form is submitted (the name of the form is submit), traditionally in code development, with a processing order: the user clicks the button , onclick, if the onclick returns a valid or unhandled onclick then submits the form, onsubmit, if onsubmit is not processed or returns True, commits, or cancels the commit. When we develop normally, you can delete it and:

2.1, the form input in the need to verify the logic can be placed in each input box element, you can add <on change> and verify in it, detailed reference to the above mentioned input box components with the introduction:

2.2. Add a button to the form, the button's <on click> the design of the submission form:

2.3. Logical design of submitting form information:

File upload box component (Files Field): is a file upload saved components, various types of files can be uploaded into the database, files stored in the database display behavior class components can be downloaded from the front-end or can have other functions such as Excel upload components for content processing.

1, like other components, you can do style design, with "Html.style" or with the style class "Html.styleclass" attribute to define:

2, each browser to the interpretation of this component is different, and the English system automatically displayed in English "Choose", Chinese system display "Select File" or similar hint;

3, upload logic, you need to pay attention to the file directly into the server-side processing, incoming other data structures (such as database tables) is not executable, this is the Web type security requirements:

Tersus to paint. Developing software display components-upload display components

Related Article

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.