ASPX development basics, aspx Development
ASP. NET-. net
WebForm MVC is two technical methods of ASP. NET
WebForm is similar to WinForm for visualized operations
MVC is similar to Java and can be operated with multiple codes.
When you use VS to debug HTML files, you do not need to use startup unless you use a breakpoint to test C # code.
You can right-click the HTML code and choose View in the browser.
HTML key points Review
12 form elements:
I. Forms
<Form id = "" name = "" method = "post/get" action = "Server responsible for processing"> IDs cannot be duplicated; names can be repeated; get submission has a length limit, the encoded content is visible in the address bar. There is no length limit for post submission and the encoded content is invisible.
</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 = "" (several rows high)> </> textarea>
Hide field <input type = "hidden" name = "" id = "" value = ""/>
2. Buttons
Click <input type = "submit" name = "" id = "" disable = "disable" value = ""/> 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 = ""/>
Image button <input type = "image" name = "" id = "" disable = "disable" value = "" src = "image address"/>
Appendix:
Disable, making the button invalid; enable, make available
3. Select Input
Single button group <input type = "radio" name = "" id = "checked =" checked "value =" "/> the value of name is used for grouping. The value cannot be seen, used to submit to the program; checked, set the default option
Check box group <input type = "checkbox" name = "" id = "checked =" checked "value =" "/>
File Upload <input type = "file" name = "" id = ">
<Label for = ""> </label>
<Label> A tag defines a tag for an input element ).
The label element does not present any special effects to users. However, it improves availability for mouse users. If you click Text in the label element, this control is triggered. That is to say, when the user selects the tag, the browser automatically redirects the focus to the form control related to the tag.
<Label> The for attribute of a tag must be the same as the id attribute of the relevant element.
Drop-down list box
<Select name = "" id = "" size = "" multiple = "multiple"> ------ When size = 1, it is a menu;> 1, it is a list; multiple is multiple.
<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
Controls will eventually become HTML elements
The layout style still uses HTML + CSS.
Controls are required to replace special data interactions.
The element containing the runat = "server" attribute is the control