WebForm Development Foundation

Source: Internet
Author: User

ASP--The technology of the ASP. NET Development Web site application

WebForm MVC is a two technical approach to ASP.

WebForm similar to WinForm, visual operations

MVC is similar to Java, with multiple code operations

When using VS debugging HTML files, unless you use breakpoints to test C # code, you do not need to use the startup

You can right-click on the HTML code and choose to view it in the browser.

HTML Key Point Review

Table cell element 12:

One, form

<form id= "" Name= "" method= "Post/get" action= "the server responsible for processing" >id is not repeatable; name can be repeated; The get commit has a length limit, and the encoded content is visible in the address bar. Post submissions have no length limit and the content is not visible after encoding.

</form>

1. Text input

text box <input type= "text" name= "" id= "" value= ""/>

Password box <input type= "password" name= "" id= "" value= ""/>

text box <textaarea name= "" id= "" cols= "" (Number of characters) rows= "" (a few lines high) ></>textarea>

Hidden fields <input type= "hidden" name= "" id= "" value= ""/>

2. Button

Submit button <input type= "Submit" Name= "" id= "" disable= "Disable" value= ""/> Click to go to the Submit server address in form

Reset button <input type= "reset" name= "" id= "" disable= "Disable" value= ""/>

Normal button <input type= "button" name= "" id= "" disable= "Disable" value= ""/>

Picture button <input type= "image" Name= "" id= "" disable= "Disable" value= "" src= "Picture address"/>

Report:

Disable to invalidate the button; Enable to make available

3. Select input

radio button Group <input type= "Radio" name= "" id= "" checked= "Checked" value= ""/>name values are used for grouping; value is not visible, used for submission to program; checked, Set default options

check box group <input type= "checkbox" Name= "id=" "checked=" Checked "value=" "/>

File upload <input type= "file" name= "id=" ">

<label for= "" ></label>

The <label> tag defines the callout (tag) for the INPUT element.

The label element does not present any special effects to the user. However, it improves usability for the user of the mouse. This control is triggered if you tap text inside a LABEL element. That is, when the user selects the label, the browser automatically shifts the focus to the label-related form controls.

The For property of the <label> tag should be the same as the ID property of the related element

Drop-down list box

<select name = "id=" "size=" "multiple=" multiple ">------size=1, is a menu; >1 is a list; multiple is a multi-select.

<option value= "value" > Content 1</option>

<option value= "Value" selected= "selected" > Content 2</option>------seleted, set as Default

<option value= "value" > Content 3</option>

</select>

Control properties:
Label-backcolor and so on will eventually become something in HTML.

The control will eventually become an HTML element

Interface, layout styles are still used HTML+CSS
Special data interaction requires a control to replace

The element that contains the runat= "Server" property is a control

WebForm Development Foundation

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.