Compile lightweight ajax components 01-comparison with various implementation methods on the webform platform, 01-webform
Preface
Asp.net WebForm and Asp.net MVC (MVC) are both web development frameworks based on Asp.net. There is a big difference between them. One of them is that MVC pays more attention to the http nature, while
Web-side b/S two kinds: (ASP--Website application development Technology) WebForm: Microsoft's first website development technologyMVC: Developed later, to make it easier for developers who turn Java and PHP to accept it.Client C/S two types: WinForm: Focus on the realization of functionWPF: Focus on the aesthetics of the interface (animation, timeline), development than WinForm difficultIIS Server : 127.0.0.1--access to native published Web sitesAc
After the webform operation is complete, return to the line positioning on the home page, and webform return to the home page.
1. When a repeater table is bound to a row, a row id (unique id) is assigned, which is the primary key bound to the table.
2. Given a hidden domain
3. When you enter the editing page, the unique primary key is successively added to the hidden domain.
4. Add two js
Function level
Quick Reference of webForm front-end frameworks and webform frameworks
The disadvantage of Html files is that they cannot be reused. MVC can be used in _ Layout. in cshtml, The js and css files (such as jq and bootstrap) required for each page are referenced, which makes webform a little more troublesome.
WebForm needs
First knowledge of webform, webform
Webform is a bsstructured program, and winform is a cs structured program;
Aspx consists of webpage and cs code;
The webpage controls of aspx are composed of server controls and client controls.
The client control is the tag in HTML.
Client control. To trigger js events, runat = "server" must be triggered with onclick.
Webform verification control and webform Control
Verification:1. Non-empty verification RequiredFieldValidatorErrorMessage-message displayed after an error is verifiedControlToValidate-ID of the control to be verifiedDisplay-Display mode. Static-space occupied when not displayed. Dynamic-no space displayedInitialValue-the initial value for verification. If the value of the verified control is the same as
inside, but the event delegate can not be written inside4. Database connectionUnlike WinForm, the difference is that the WebForm entity class, the data access class has no namespace, and can be referenced directly in the code.The other classes you create are placed in the App_Code folder, which you don't normally need to create, and you'll be prompted when you build your class.Three-layer development of 5.Webform:Interface layer: HTML+CSS+JSBusiness
WebForm. aspx Cache, webform. aspxcache
Cache (Cache) 1. If the database is queried every time you enter the page and the page content is generated, the website performance will be very poor if the access volume is very large, if the page content is generated only when the database is queried for the first access. Content will be output directly in the future. In this way, the system performance can be impr
Asp. NET divided into: ASP. WebForm and ASP.Operating mechanism:c/S (client application) code is executed on the client, just go to the database on the server to access datab/S (website application) program code executes on the server, the client only renders HTML+CSS, executes the JS code, all other functions are executed on the serverThe client browser sends the request → IIS (Internet Information Services Manager) on the server (HTML+CSS+JS) →. NET
The WebForm. aspx page accesses the methods in the WebForm. aspx. cs class through AJAX to obtain data, aspx. cs
The WebForm. aspx page uses AJAX to access methods in the WebForm. aspx. cs class to obtain data.WebForm1.aspx page (native AJAX request, method 1)
WebForm1.aspx page (native AJAX request, written in 2, w
The regular expression is used in the webform login operation, and the regular expression is webform.
Many people may think this is very troublesome about the use of regular expressions. It is really troublesome. I can't remember too many expressions. Many of them are used when I need them on a temporary basis. It's a bit of an architecture for a pupil to read novels, and I will flip the dictionary again if
WebForm control and webform Control
Simple controls
Text:
Label -- display text
Border
To set: 1. border color 2. Border Style 3. Border Width
Attribute: BackColor
BorderColor/BorderStyle/BorderWidth -- set the border
Literal
It is generally used to output JS Code.
TextBox: text input box
Attribute: TextMode -- MultLine multi-line (text field) is compiled as Textarea
Password single-line Password box
Single
Creates a high-performance, lightweight webform framework that subverts your imagination-without refreshing the process of submitting a new background and returning parameters (the fifth day), webform framework
Question 5: When I use the aspx page to execute the background method, I always need to refresh the entire page? I want to submit a page in the background without refreshing a new page, and return pa
Webform Simple Server Control ., Webform Server Control
Basic Server Control:
1 textbox
Text: Get or set textTextmode: Single/multi-line/password...Wrap: whether to wrapRows: number of rowsColumns: Number of columns, widthBackcolor: Background ColorReadonly: Read-only or not
2 label literal
3 button linkbutton imagebutton
The button attribute is similar to that of textbox ,.
Linkbutton
Imagebutton is the
I've been developing Web applications using the ASP. WebForm framework for almost four years, and throughout my development career, I've used the MVC framework of ASP. Because there is often a discussion on the WebForm framework and the MVC framework of the pros and cons, so they are also concerned about the two, because they are most familiar with the WebForm fr
Objective
asp.net webform and asp.net mvc (MVC for short) are based on the ASP.net web development framework, one of the big differences is that MVC focuses more on the HTTP nature, and WebForm tries to block HTTP by providing a number of server controls and viewstate mechanisms that allow developers to develop windows Form applications, programming based on the event model. Both have pros and cons and app
His own understanding of MVC is more difficult to learn than WebForm, but performance is better than WebForm, which is more suitable for large projects, higher cost of development, but low coupling, easy maintenance, not too many off-the-shelf controls, and less development efficiency. It's not easy to learn MVC for people who have a foundation for WebForm.
I. Ch
Students who have used asp.net mvc may have some contact with route, and may use URL Rewrite to implement similar functions in ASP.net webform. This article describes the use of route in ASP.net WebForm.
1. Locate the Global.asax file and create a new one without this file.
2. Add RegisterRoutes method
Code highlighting produced by Actipro Codehighlighter (freeware) http://www. codehighlighter.com/--> 1 pub
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.