Introduction to. NET WebForm

Source: Internet
Author: User

WebForm is a product developed by Microsoft that encapsulates the user's requests and responses as controls. Let the developer think that they are operating a Windows interface. Greatly improves the development efficiency.

When learning WebForm, its knowledge volume is more than WinForm, in the actual use of the process of webform accounted for about 20% of the use of 80%,winform.

WinForm is c/s (client)

This is mostly native execution.

WebForm is b/s (browser)

Mainly in the server execution, the client is mainly to send requests and get the data sent back by the servers

Take the hotel as an example:

Potato wire-To send a request to IIS, IIS is the equivalent of a waiter

Notify the kitchen-IIS informs the. NET framework of the ASPX that the user wants to see

Kitchen cooking-the. NET Framework performs processing of C # code in ASPX pages

Shouted the waiter to serve the dishes-. NET Framework to return the processed pages to the Iis,iis to the user.

To head Garlic-HTML page requests, IIS can be returned directly to the user without having to go through. NET Framework Processing

ASP Development <%%> (code hit between) <%=%> (used when assigning values) <%@%> (declared to be used)

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

Asp. NET's two technical methods are:

1.WebForm

2.MVC

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

Introduction to. NET WebForm

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.